您现在的位置是:首页 > 教程 > pbootcms教程pbootcms教程

pbootcms模板列表分页样式代码分享

寻文2024-11-05 21:46:55pbootcms教程已有人查阅

导读今天代码号分享下PBOOTCMS分页样式表和代码,欢迎大家学习参考。pbootcms分页样式1:

今天代码号分享下PBOOTCMS分页样式表和代码,欢迎大家学习参考。
pbootcms分页样式1:
<div class="pages">
<div class="pagination">
{pboot:if({page:rows}>0)}
<a class="page-item" href="{page:index}">首页</a>
<a class="page-item"href='{page:pre}'>上一页</a>
{page:numbar}
<a class="page-item" href='{page:next}'>下一页</a>
<a class="page-item" href='{page:last}'>末页</a>
{/pboot:if}
</div>
</div>
/*代码号 网分页样式*/
.pages{clear:both;padding:20px 0;font-size:14px;text-align:center; overflow:hidden}
.pages .pagination {display:inline-block;**rgin:0 auto;padding:0}
.pages .pagination .page-item,.pages .pagination .page-num{color:#555; padding: 3px 14px; display:block; border-radius: 2px; border: 1px solid #ddd;float: left;**rgin: 0 5px;}
.pages .pagination .page-num-current{ background:#12b34a; color:#fff; border:#12b34a 1px solid}
@media only screen and (**x-width:768px){
.pages .pagination .page-num {display: none;}
}
pbootcms分页样式2:
{pboot:if({page:rows}>0)}
<div class="pages">
<a href="{page:pre}"> << </a>
{page:numbar}
<a href="{page:next}"> >> </a>
<a class="pagecount">{page:current}/{page:count}</a>
</div>
{else}
<div class="text-center my-5 text-secondary">未查询到任何数据!</div>
{/pboot:if}
/*代码号 网分页样式*/
.pages{padding: 20px 0;width:百%;text-align: center;clear: both;}
.pages a,.pages span{color: #666;padding: 0 15px;**rgin: 0 3px;display: inline-block;vertical-align: middle;line-height: 34px;background: #f9f9f9;border: 1px solid #f2f2f2;}
.pages a:hover{display:inline-block;color: #fff;background: #dc0b01;border-color: #dc0b01;box-shadow: 0 0 14px rgba(0, 0, 0, .2);}
.pages span{display:inline-block;color: #666;}
.pages a.page-num-current{display:inline-block;color: #fff;background: #dc0b01;border-color: #dc0b01;box-shadow: 0 0 14px rgba(0, 0, 0, .2);}
.text-secondary{text-align: center; padding:10px 0}

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

相关标签