Browse Source

pagination css improve for mobile

master
filesite 5 months ago
parent
commit
2834de4846
  1. 8
      plugins/Html.php
  2. 2
      www/css/beauty.css

8
plugins/Html.php

@ -189,14 +189,14 @@ eof;
//上一页 //上一页
$previousLink = <<<eof $previousLink = <<<eof
<li class="page-item disabled"> <li class="page-item disabled">
<span class="page-link">上一页</span> <span class="page-link"><span class="hidden-xs"></span></span>
</li> </li>
eof; eof;
if ($page > 1) { if ($page > 1) {
$url = self::getPaginationLink($currentUrl, $page-1, $limit); $url = self::getPaginationLink($currentUrl, $page-1, $limit);
$previousLink = <<<eof $previousLink = <<<eof
<li class="page-item"> <li class="page-item">
<a class="page-link" href="{$url}">上一页</a> <a class="page-link" href="{$url}"><span class="hidden-xs"></span></a>
</li> </li>
eof; eof;
} }
@ -204,14 +204,14 @@ eof;
//下一页 //下一页
$nextLink = <<<eof $nextLink = <<<eof
<li class="page-item disabled"> <li class="page-item disabled">
<span class="page-link">下一页</span> <span class="page-link"><span class="hidden-xs"></span></span>
</li> </li>
eof; eof;
if ($page < $maxPage) { if ($page < $maxPage) {
$url = self::getPaginationLink($currentUrl, $page+1, $limit); $url = self::getPaginationLink($currentUrl, $page+1, $limit);
$nextLink = <<<eof $nextLink = <<<eof
<li class="page-item"> <li class="page-item">
<a class="page-link" href="{$url}">下一页</a> <a class="page-link" href="{$url}"><span class="hidden-xs"></span></a>
</li> </li>
eof; eof;
} }

2
www/css/beauty.css

@ -141,7 +141,7 @@ a:link{text-decoration:none}
.navbar-fixed-left{position:static;width:100%} .navbar-fixed-left{position:static;width:100%}
.img_main{margin-left:0} .img_main{margin-left:0}
.pagination>li>a, .pagination>li>span{padding:3px 7px} .pagination>li>a, .pagination>li>span{padding:3px 8px}
} }
@keyframes musicTurn { @keyframes musicTurn {

Loading…
Cancel
Save