经常在看网页,博客等地方,显示分页,上一页,下一页,首页,尾页等
<html>
<body>
<div id="papelist" class="pagelist">
<span> 170条数据 共4页</span>
<a href="/catoop/article/list/1">首页</a>
<a href="/catoop/article/list/3">上一页</a>
<a href="/catoop/article/list/1">1</a>
<a href="/catoop/article/list/2">2</a>
<a href="/catoop/article/list/3">3</a>
<strong>4</strong>
</div>
<!--显示分页-->
<div id="papelist" class="pagelist">
<span> 170条数据 共4页</span>
<a href="/catoop/article/list/1">首页</a>
<a href="/catoop/article/list/1">上一页</a>
<a href="/catoop/article/list/1">1</a>
<strong>2</strong>
<a href="/catoop/article/list/3">3</a>
<a href="/catoop/article/list/4">4</a>
<a href="/catoop/article/list/3">下一页</a>
<a href="/catoop/article/list/4">尾页</a>
</div>
<script>
</script>
</body>
</html>