谁能帮助我在PagedList.MVC中添加或更新CSS类和HTML。
这是我的Index.cshtml
<span>Page</span> @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) <Span>of</Span> @Model.PageCount
@Html.PagedListPager(Model, page => Url.Action("Index", new { page, currentFilter = ViewBag.CurrentFilter }))
当我在浏览器中进行检查时,我发现Html以下
<div class="pagination-container">
<ul class="pagination">
<li class="active"><a>1</a></li>
<li><a href="/abc/?page=2">2</a></li>
<li class="PagedList-skipToNext"><a href="/abc/?page=2" rel="next">»</a></li>
</ul>
</div>
而不是上面的HTML我需要这个HTML
<div>
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</div>
相关分类