$pagehtml = $list->render();
         $pagehtml=str_replace("", "{$list->currentPage()} / {$list->lastPage()}", $pagehtml);
         $pagehtml=str_replace("«", "上一页", $pagehtml);
         $pagehtml=str_replace("»", "下一页", $pagehtml);


/* 1. 只保留第一个和最后一个 li,其余 li 全部隐藏 */
.pagination li:not(:first-of-type):not(:last-of-type){display:none;}
.pagination li:first-child{ margin-right:auto; display:block; }
.pagination li:last-child{ margin-left:auto;  display: block;}
.pagination{ display:flex;align-items:center;justify-content:space-between;margin:10px 0px;list-style:none;padding: 20px 40px; position: relative;font-size: 12px;box-shadow: 0px 0px 10px rgb(34 25 25 / 20%);}
.pagination > span{position: absolute; display: block; width: 50px; left: 50%; margin-left: -25px;  white-space:nowrap; color:#666;}

.disabled span{color: #e0e0e0;cursor: not-allowed;}

快捷键:fastadminjianjiefenye

源:

sublime_text格式

<snippet>
    <content><![CDATA[
\$pagehtml = \$list->render();
         \$pagehtml=str_replace("", "{\$list->currentPage()} / {\$list->lastPage()}", \$pagehtml);
         \$pagehtml=str_replace("&laquo;", "上一页", \$pagehtml);
         \$pagehtml=str_replace("&raquo;", "下一页", \$pagehtml);


/* 1. 只保留第一个和最后一个 li,其余 li 全部隐藏 */
.pagination li:not(:first-of-type):not(:last-of-type){display:none;}
.pagination li:first-child{ margin-right:auto; display:block; }
.pagination li:last-child{ margin-left:auto;  display: block;}
.pagination{ display:flex;align-items:center;justify-content:space-between;margin:10px 0px;list-style:none;padding: 20px 40px; position: relative;font-size: 12px;box-shadow: 0px 0px 10px rgb(34 25 25 / 20%);}
.pagination > span{position: absolute; display: block; width: 50px; left: 50%; margin-left: -25px;  white-space:nowrap; color:#666;}

.disabled span{color: #e0e0e0;cursor: not-allowed;}
]]></content>
   <tabTrigger>fastadminjianjiefenye(fastadmin 待页数的简介分页)</tabTrigger>
   <scope></scope>
</snippet>
点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部