曹祖成 發表於 2023-10-14 00:00:00

织梦列表页分页错位(分页显示为竖排)的解决方法

<p>
        <span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>解决办法: </span></p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>列表页分页代码:</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        &lt;div class="dede_pages"&gt; <br>
        &lt;ul class="pagelist"&gt; <br>
        {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/} <br>
        &lt;/ul&gt; <br>
        &lt;/DIV&gt; </p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>调用样式添加:</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        .dede_pages{ <br>
        text-align:right; <br>
        } <br>
        .dede_pages ul{ <br>
        float:right; <br>
        padding:12px 0px 12px 16px; <br>
        } <br>
        .dede_pages ul li{ <br>
        float:left; <br>
        font-family:Tahoma; <br>
        line-height:17px; <br>
        margin-right:6px; <br>
        border:1px solid #E9E9E9; <br>
        } <br>
        .dede_pages ul li a{ <br>
        float:left; <br>
        padding:2px 4px 2px; <br>
        color:#555; <br>
        display:block; <br>
        } <br>
        .dede_pages ul li a:hover{ <br>
        color:#690; <br>
        text-decoration:none; <br>
        padding:2px 4px 2px; <br>
        } <br>
        .dede_pages ul li.thisclass, <br>
        .dede_pages ul li.thisclass a,.pagebox ul li.thisclass a:hover{ <br>
        background-color:#F8F8F8; <br>
        padding:2px 4px 2px; <br>
        font-weight:bold; <br>
        } <br>
        .dede_pages .pageinfo{ <br>
        line-height:21px; <br>
        padding:12px 10px 12px 16px; <br>
        color:#999; <br>
        } <br>
        .dede_pages .pageinfo strong{ <br>
        color:#555; <br>
        font-weight:normal; <br>
        margin:0px 2px; <br>
        } </p>
頁: [1]
查看完整版本: 织梦列表页分页错位(分页显示为竖排)的解决方法