- A+
所属分类:dede素材
翻页展示
通用大部分企业网站的使用,如果不懂怎么用,可以查看
dede仿站第八课:搞定一个翻页
翻页代码
- <!-- CSS部分 -->
- <style type="text/css">
- .list_page {
- text-align: center;
- width: 100%;
- margin: 55px auto 0;
- overflow: hidden;
- }
- .list_page ul {
- width: 710px;
- margin: 0 auto;
- text-align: center;
- }
- .list_page ul li {
- width: 55px;
- height: 40px;
- border: #efefef 1px solid;
- line-height: 40px;
- text-align: center;
- background: #fff;
- float: left;
- }
- .list_page a {
- color: #666;
- display: block;
- }
- .list_page ul li.thisclass, .list_page ul li.thisclass a, .list_page ul li:hover {
- background: #A01D1E;
- width: 57px;
- height: 42px;
- border: none;
- color: #fff;
- cursor: pointer;
- }
- </style>
- <!-- HTML部分 -->
- <div class="list_page">
- <ul>
- {dede:pagelist istitem="index,pre,next,end,pageno," listsize="5"/}
- </ul>
- </div>