主题 : 分页样式求指教 |
级别: 秀才
![]() |
1# 发表于:2021-05-21 09:37:00 IP:123.165.*.*
|
||||
---|---|---|---|---|---|
级别: 秀才
![]() |
3# 发表于:2021-05-21 09:48:39 IP:123.165.*.*
回复第2楼
主要是我实现了分页,就是不知道怎么修改点击哪一页,然后哪一页显示被选中的样式 |
||
---|---|---|---|
级别: 秀才
![]() |
5# 发表于:2021-05-22 09:01:51 IP:119.155.*.*
[#list 1..p.totalPage as i]
<div class="zx_menu " style="margin-top: 40px;margin-left: 15px;float: left;height: 25px;width: 25px;border: 1px solid cornflowerblue;"> <li class="active" [#if p.pageNo==i] style="text-align:center;background-color: #2071b5 !important;"[/#if]> [#if p.pageNo==i] <a style="font-size: 19px;color: #ffffff;" href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [#else] <a style="font-size: 19px;color: #6495ed;" href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#if] </li> </div> [/#list] 这样就可以实现方格的样式 |
||
---|---|---|---|
1
共1页