POSCMS 版主:POSCMS负责人
这种logo在中间的一共有6个栏目我应该怎么循环
类型:POSCMS 更新时间:2019-05-21 16:27:49

image.png

这种logo在中间的一共有6个栏目我应该怎么循环,可以前面循环前三个,后面循环后是三个

<dl class="nav_top_left">

                       {list action=category module=share pid=0 num=3}

                         <dd><a href="{$t.url}">{$t.name}</a></dd>

            {/list}

                    </dl>

                    <dl class="nav_top_logo">

                              <a href="/"><img src="{dr_get_file(dr_block('logo2'))}"  /></a>

                    </dl>

                    <dl class="nav_top_right">

                          {list action=category module=share pid=0 }    

                              <dd><a href="{$t.url}">{$t.name}</a></dd>

                          {/list}

                    </dl>


回帖
  • 可爱的凤凰号
    #1楼    可爱的凤凰号
    2019-05-21 15:49:12
    0
    {list action=category module=share pid=0 num=3,3}
  • s1234567
    #2楼    s1234567
    2019-05-21 15:51:43
    0
    可爱的凤凰号没有作用
  • 长沙小陈
    #3楼    长沙小陈
    2019-05-21 15:58:51
    0
                        <dl class="nav_top_left">
                           {list action=category module=share pid=0 num=3}
                             <dd><a target="_blank" href="{$t.url}">{$t.name}</a></dd>
                		{/list}
                        </dl>
                        <dl class="nav_top_logo">
                                  <a target="_blank" href="/"><img src="{dr_get_file(dr_block('logo2'))}"  /></a>
                        </dl>
                        <dl class="nav_top_right">
                              {list action=category module=share pid=0 num=6}
                              {if $key>2}
                                  <dd><a target="_blank" href="{$t.url}">{$t.name}</a></dd>
                                  {/if}
                              {/list}
                        </dl>
    满意答案
  • s1234567
    #4楼    s1234567
    2019-05-21 16:27:49
    0
    @长沙小陈:谢谢大佬