原文来自:https://www.zixuephp.com
DEDECMS文章内容页手动分页竖排变横排
发布的文章内容分页都是竖向的,很不好看,想把它变成横向的,最好能再适当的美化一下,解决方法,你CSS中加这段代码:
- .dede_pages{
- }
- .dede_pagesul{
- float:left;
- padding:12px0px12px16px;
- }
- .dede_pagesulli{
- float:left;
- font-family:Tahoma;
- line-height:17px;
- margin-right:6px;
- }
- .dede_pagesullia{
- float:left;
- padding:2px4px2px;
- color:#555;
- border-bottom:1pxsolid#EEE;
- }
- .dede_pagesullia:hover{
- color:#690;
- text-decoration:none;
- padding:2px4px1px;
- border-bottom:2pxsolid#690;
- }
- .dede_pagesulli.thisclassa,.pageboxulli.thisclassa:hover{
- color:#F63;
- padding:2px4px1px;
- border-bottom:2pxsolid#F63;
- font-weight:bold;
- }
- .dede_pages.pageinfo{
- line-height:21px;
- padding:12px10px12px16px;
- color:#999;
- }
- .dede_pages.pageinfostrong{
- color:#555;
- font-weight:normal;
- margin:0px2px;
- }
模板调用加:
- <divclass="dede_pages">
- <ulclass="pagelist">
- {dede:pagebreak/}
- </ul>
- </div>
效果图: