主题 : 内容列表点击分页显示页面找不到 |
级别: 解元
![]() |
11# 发表于:2018-07-17 14:24:45 IP:106.202.*.*
|
||||
---|---|---|---|---|---|
级别: 论坛管理员
![]() |
13# 发表于:2018-07-17 14:29:23 IP:115.234.*.*
如果这是是您加上去的 我认为是您那边的分页模板有问题 您可以去看下我们的演示站 我们演示站就有很多的页面分页 是没有问题的 您可以参照我们的分页来重新写一个
|
||
---|---|---|---|
级别: 解元
![]() |
14# 发表于:2018-07-17 14:32:47 IP:106.202.*.*
[#--
栏目翻页样式 1 2 3 4 5 ... 10 [1-3] 1 ..2 3 4 5 6 ... 10 [4] 1 ..3 4 5 6 7... 10 [5] pageClass: 翻页DIV class pageStyle: 翻页DIV style currPageClass:当前页码class norPageClass:其他页码class --] <style> .next-page,.prev-page{ font-size:16px; } .page-large { margin: 40px 0 20px; text-align: center; } .page-large a.on { border: 1px solid #1a75d1; background: #1a75d1; color: #fff; } .page-large a { min-width: 34px; height: 34px; display: inline-block; border: 1px solid #d5d5d5; box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -webkit-box-sizing: border-box; line-height: 34px; text-align: center; float: left; text-indent: 0; color: #666666; font-size: 16px; font-family: Arial, Helvetica, sans-serif; margin: 0 3px; } .page-large a.on { border: 1px solid #1a75d1; background: #1a75d1; color: #fff; } </style> <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] [#if i==1] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}${hrefLatter}');">${i}</a> [#else] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#if] [/#list] [#else] [#list 1..p.totalPage as i] [#if i==1] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}${hrefLatter}');">${i}</a> [#else] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#if] [/#list] [/#if] [#else] [#assign first=p.pageNo-2/] [#assign last=p.pageNo/] <a class="Num" href="#" onclick="location.href=encodeURI('${hrefFormer}${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> |
||
---|---|---|---|
级别: 论坛管理员
![]() |
18# 发表于:2018-07-17 14:43:53 IP:115.234.*.*
明白 我的意思是您是在那个模板看到的 能说下吗? 有些的模板内的分页是不同的
|
||
---|---|---|---|
级别: 论坛管理员
![]() |
19# 发表于:2018-07-17 14:44:48 IP:115.234.*.*
回复第17楼
![]() 您看分页也有很多种分页的 我想知道您是在那个模板调用了什么样的分页 |
||
---|---|---|---|