muban大师 发表于 2020-4-16 10:01:22

织梦文章列表分页如何解决,以及分页标签详细解释

织梦dedecms改版到5.3-5.5 分页标签
           {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
        其中会自动生成[*,以及标签,如果做模板的时候CSS样式设置不正确,则会发生错位。
       
        .tg_pages{
        padding-top: 10px;
        padding-bottom: 10px;   text-align: center;
        }
        .tg_pages li{
        display: inline;
        line-height: 22px;
        }
        .tg_pages li a{
        margin-right: 5px;
        padding-right: 5px;
        padding-left: 5px;
        padding-top: 3px;
        padding-bottom: 3px;
        border: 1px solid #CCC;
        background-color: #FFF;
        }
        .thisclass {
        font-weight: bold;
        color: #C00;
        }
       
       
       
        [*,首页
        1
        [*,2
        [*,3
        [*,4
        [*,5
        [*,6
        [*,7
        [*,8
        [*,9
        [*,10
        [*,11
        [*,下一页
        [*,末页
        [*,共 295页2944条
       
       
        【Pagelist 标记】
        功能说明:表示分页页码列表
        适用范围:列表模板
       
        (1)语法
        {dede:pagelist listsize='3' listitem=''/}
        (2)属性
        [1, listsize 表示 [1,[2,[3, 这些项的长度 x 2
        [2, listitem 表示页码样式,可以把下面的值叠加
        index  首页
        pre 上一页
        pageno 页码
        next 下一页
        end 末页
        option 下拉跳转框
        正确使用
       
       
          
                
                {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
                
页: [1]
查看完整版本: 织梦文章列表分页如何解决,以及分页标签详细解释