主题 : 求助,如何显示这种分页 |
级别: 举人
![]() |
1# 发表于:2016-12-14 17:29:29 IP:218.115.*.*
|
||||
---|---|---|---|---|---|
级别: 版主
![]() |
2# 发表于:2016-12-15 08:23:07 IP:117.131.*.*
改分页样式要改模板,include/page.html
你发的标签和分页样式没关系 |
||
---|---|---|---|
级别: 举人
![]() |
3# 发表于:2016-12-15 08:46:52 IP:218.115.*.*
那个应该怎么改呢?我不会呀!就改成显示那种的就行了
这个是page.html的文档 <div class="page-large"> [#assign p=tag_pagination/] <div style="display:inline-block;"> [#if p.firstPage][#else]<a href="#" class="prev-page" onclick="location.href=encodeURI('${hrefFormer}[#if p.prePage gt 1]_${p.prePage}[/#if]${hrefLatter}');"></a>[/#if] [#if p.pageNo lte 3] [#if p.totalPage gt 3] [#list 1..3 as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#list] <a class="none">...</a><a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.totalPage}${hrefLatter}');">${p.totalPage}</a> [#else] [#list 1..p.totalPage as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">[${i}]</a> [/#list] [/#if] [#else] [#assign first=p.pageNo-2/] [#assign last=p.pageNo/] <a class="Num" href="#" onclick="location.href=encodeURI('${hrefFormer}_1${hrefLatter}');">1</a> [#if first gt 2]<a class="Num none">...</a>[/#if] [#list first..last as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#list] [#if p.totalPage!=p.pageNo] [#if last lt p.totalPage-1]<a class="none">...</a>[/#if] <a class="Num " href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.totalPage}${hrefLatter}');">${p.totalPage}</a> [/#if] [/#if] [#if p.lastPage][#else]<a class="next-page" href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.nextPage}${hrefLatter}');"></a>[/#if] </div> </div> |
||
---|---|---|---|
1
共1页