开发框架 版主:迅睿框架研发组
<li>标签,该如何写循环代码呢
类型:迅睿CMS 更新时间:2022-05-09 11:00:20


不是<li>标签请问我该如何写循环代码呢?我试了几次似乎不成功呢?麻烦赐教,谢谢!

image

回帖
  • 小黄人 18html
    #1楼    小黄人 18html
    2022-05-09 09:24:05
    小米手机 0
    看默认模板,就最快不然就看手册参考文档:《模块内容列表循环》
  • 小黄人 18html
    #2楼    小黄人 18html
    2022-05-09 09:30:35
    Chrome 0
    全能人才,你应该贴你写的代码。人家才能给你解答你为什么不成功
  • 天荣科技
    #3楼    天荣科技
    2022-05-09 09:37:52
    Chrome 0
    好的
  • 天荣科技
    #4楼    天荣科技
    2022-05-09 09:53:41
    Chrome 0
    我又重新调了一次现在调出来了只是没有分行排列呢?我设置的是9个应该三列三行显示才对,要怎么处理呢?谢谢! <div class="xl12 xs8 xm9 xb9"> <div class="show_content padding-large-bottom"> {module module=news catid=$catid order=displayorder page=1} <div class="show_list product_list_box"> <div class="show-product"> <div class="line-big"> <div class="xm4 xs6 xl6 margin-big-bottom"> <div class="media-img"><a href="{$t['url']}" title="{dr_strcut($t['title'], 10, '...')} " class="zoomimgs" style="background-image:url({dr_get_file($t['thumb'])});background-size: 100% 100%;"></a></div> <h3 class="text-center"><a href="{$t['url']}" title="{dr_strcut($t['title'], 10, '...')} ">{dr_strcut($t['title'], 10, '...')} </a></h3> </div> </div> </div> </div> {/module} <div class="text-center padding-big-top padding-big-bottom"> <ul class="pagination">{$pages} </ul> </div> </div>
  • 天荣科技
    #5楼    天荣科技
    2022-05-09 09:55:12
    Chrome 0

    image
    现在是这样一列显示了怎么分三列显示呢?谢谢!
  • 小黄人 18html
    #6楼    小黄人 18html
    2022-05-09 10:43:42
    Chrome 0
    如果我没看错 <div class="show_list product_list_box">应该是在循环外显示,全能人才!
    你连HTML都不懂嘛
  • 天荣科技
    #7楼    天荣科技
    2022-05-09 10:50:29
    Chrome 0
    我试试在里面循环,谢谢!
  • 天荣科技
    #8楼    天荣科技
    2022-05-09 10:56:54
    Chrome 0

    image
    搞定了<div class="xl12 xs8 xm9 xb9"> <div class="show_content padding-large-bottom"> <div class="show_list product_list_box"> <div class="show-product"> <div class="line-big"> {module module=news catid=$catid order=displayorder page=1} <div class="xm4 xs6 xl6 margin-big-bottom"> <div class="media-img"><a href="{$t['url']}" title="{dr_strcut($t['title'], 10, '...')} " class="zoomimgs" style="background-image:url({dr_get_file($t['thumb'])});background-size: 100% 100%;"></a></div> <h3 class="text-center"><a href="{$t['url']}" title="{dr_strcut($t['title'], 10, '...')} ">{dr_strcut($t['title'], 10, '...')} </a></h3> </div> {/module} </div> </div </div> <div class="text-center padding-big-top padding-big-bottom"> <ul class="pagination">{$pages} </ul> </div> </div> </div> </div>
    满意答案
  • 小黄人 18html
    #9楼    小黄人 18html
    2022-05-09 10:58:20
    Chrome 0
    天荣科技 搞定就结贴,采纳
  • 天荣科技
    #10楼    天荣科技
    2022-05-09 10:59:21
    Chrome 0
    谢谢小黄人提示! 🙏