联系官方销售客服

1835022288

028-61286886

求助 版主:官方研发技术组
首页,调用栏目文章,每个栏目4篇,但是每个都有不同的样式,要怎么弄
类型:迅睿CMS 更新时间:2022-01-13 12:01:33

首页,调用栏目文章,每个栏目4篇,但是每个都有不同的样式,要怎么弄  小白仿站    见笑了..

164203988164eeb3.txt


         

360截图17001018106133118


回帖
  • chanwei
    #1楼    chanwei
    2022-01-13 10:14:19
    Chrome 0
    设置不同的模板啊
  • lqggcs
    #2楼    lqggcs
    2022-01-13 10:15:47
    Chrome 0
    chanwei 不是模板,我不知道要怎么写调用代码
  • lqggcs
    #3楼    lqggcs
    2022-01-13 10:18:55
    Chrome 0



    1642040324ea72c4.txtphpcms是这么写的

  • lqggcs
    #4楼    lqggcs
    2022-01-13 10:20:36
    Chrome 0

    image
    phpcms 这样写的
  • 青花瓷
    #5楼    青花瓷
    2022-01-13 10:33:22
    Chrome 0
    你附件发的txt保存格式不对,汉字乱码了,要保存成utf-8格式
  • 青花瓷
    #6楼    青花瓷
    2022-01-13 10:34:41
    Chrome 0
    <div class="box2_name">榫欏簡宸ョ▼</div> </div> </div> <ul> {category module=share pid=12} <li>{$t.name}</li> {/category} </ul> </div> <div class="bd"> {module module=news order=updatetime catid=34 num=4} <ul class="box2_ul"> <li class="box2_li{$key+1}"> <a href="{$t.url}"> <div class="box2_img"> <img src="{dr_thumb($t.thumb,)}" class="img"> <div class="box2_h center"> <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div> <div class="box2_name">鏇村琛屼笟妗堜緥鍙婄粏鑺�<br>鍙坊鍔犲鏈嶅井淇$储鍙�</div> </div> </div> <div class="box2_tit"> <div class="box2_h1">{dr_strcut($t.title, 7)}</div> <div class="box2_h2"><img src="{THEME_PATH}ceshi/images/box2_ico.png">銆€10314銆€鏇村</div> </div> </a> </li> </ul> {/module}
  • lqggcs
    #7楼    lqggcs
    2022-01-13 10:47:36
    Chrome 0
    青花瓷 刚刚不好意思,小白一枚,我刚试了下,现在变成这样了
  • lqggcs
    #8楼    lqggcs
    2022-01-13 10:48:39
    Chrome 0
    青花瓷 他怎么没在自己的栏目里 跑其他栏目了
  • lqggcs
    #9楼    lqggcs
    2022-01-13 10:50:14
    Chrome 0

    和这段有关系吧


    image

  • 青花瓷
    #10楼    青花瓷
    2022-01-13 10:50:45
    Chrome 0
    你把源代码及页面的url发一下,这样才能看到底是什么问题
  • lqggcs
    #11楼    lqggcs
    2022-01-13 10:55:28
    Chrome 0
    www.lqggcb.com
  • LandQ
    #12楼    LandQ
    2022-01-13 10:57:07
    Chrome 0
    <div class="box2_name">龙庆工程</div>
    <ul>
        {category module=share pid=12}
        <li>{$t.name}</li>
        {/category}
    </ul>
    
    <div class="bd">
        {category module=share pid=12}
        <ul class="box2_ul">
            {module module=$t.mid catid=$t.id num=4 cache=1 return=t2}
            <li class="box2_li{$key_t2}">
                <a href="{$t2.url}">
                    <div class="box2_img"><img src="{if $t2.thumb}{dr_get_file($t2.thumb)}{else}/static/assets/images/nopic.gif{/if}" class="img">
                        <div class="box2_h center">
                            <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div>
                            <div class="box2_name">更多行业案例及细节<br>可添加客服微信索取</div>
                        </div>
                    </div>
                    <div class="box2_tit">
                        <div class="box2_h1">{dr_strcut($t2.title, 7)}</div>
                        <div class="box2_h2"><img src="{THEME_PATH}ceshi/images/box2_ico.png"> 10314 更多</div>
                    </div>
                </a>
            </li>
            {/module}
        </ul>
        {/category}
    </div>
  • 青花瓷
    #13楼    青花瓷
    2022-01-13 11:08:04
    Chrome 0
    楼上正解,“更多”前的数字可以去掉
  • lqggcs
    #14楼    lqggcs
    2022-01-13 11:26:42
    Chrome 0

    是是是

    360截图18470201376651
    LandQ 青花瓷 LandQ 这样了
  • LandQ
    #15楼    LandQ
    2022-01-13 11:37:21
    Chrome 1
    lqggcs
    <div class="box2">
        <div class="container">
            <div class="box2_head">
                <div class="box2_head1">龙庆工程</div>
                <div class="box2_head2">承接大型标志性项目百余家,实现了总建筑面积超过8000万平方米,涉及钢结构建筑的各个领域。</div>
            </div>
            <div class="slideTxtBox clearfix">
                <div class="hd">
                    <div class="box2_left">
                        <img src="{THEME_PATH}ceshi/images/box2_img.png" class="img">
                        <div class="box2_h center">
                            <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div>
                            <div class="box2_name">龙庆工程</div>
                        </div>
                    </div>
                    <ul>
                        {category module=share pid=12}
                        <li>{$t.name}</li>
                        {/category}
                    </ul>
                </div>
                <div class="bd">
                    {category module=share pid=12}
                    <ul class="box2_ul">
                        {module module=$t.mid catid=$t.id num=4 cache=1 return=t2}
                        <li class="box2_li{$key_t2}">
                            <a href="{$t2.url}">
                                <div class="box2_img">
                                    <img src="{if $t2.thumb}{dr_get_file($t2.thumb)}{else}/static/assets/images/nopic.gif{/if}" class="img">
                                    <div class="box2_h center">
                                        <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div>
                                        <div class="box2_name">更多行业案例及细节<br>可添加客服微信索取</div>
                                    </div>
                                </div>
                                <div class="box2_tit">
                                    <div class="box2_h1">{$t2.title}</div>
                                    <div class="box2_h2"><img src="{THEME_PATH}ceshi/images/box2_ico.png"> {$t2.hits} 更多</div>
                                </div>
                            </a>
                        </li>
                        {/module}
                    </ul>
                    {/category}
                </div>
            </div>
        </div>
    </div>
    <script>jQuery(".slideTxtBox").slide({trigger: "click"});</script>
    满意答案
  • lqggcs
    #16楼    lqggcs
    2022-01-13 11:51:53
    Chrome 0
    LandQ 其他的好了 现在第一张图 跑后面去了
    image
  • LandQ
    #17楼    LandQ
    2022-01-13 11:56:37
    Chrome 1
    lqggcs
    image
    改成
    <li class="box2_li{$key_t2+1}">
  • lqggcs
    #18楼    lqggcs
    2022-01-13 12:00:32
    Chrome 0
    <div class="box2"> <div class="container"> <div class="box2_head"> <div class="box2_head1">龙庆工程</div> <div class="box2_head2">承接大型标志性项目百余家,实现了总建筑面积超过8000万平方米,涉及钢结构建筑的各个领域。</div> </div> <div class="slideTxtBox clearfix"> <div class="hd"> <div class="box2_left"> <img src="{THEME_PATH}ceshi/images/box2_img.png" class="img"> <div class="box2_h center"> <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div> <div class="box2_name">龙庆工程</div> </div> </div> <ul> {category module=share pid=12} <li>{$t.name}</li> {/category} </ul> </div> <div class="bd"> {category module=share pid=12} <ul class="box2_ul"> {module module=$t.mid catid=$t.id num=4 cache=1 return=t2} <li class="box2_li{$key_t2+1}"> <a href="{$t2.url}"> <div class="box2_img"> <img src="{if $t2.thumb}{dr_get_file($t2.thumb)}{else}/static/assets/images/nopic.gif{/if}" class="img"> <div class="box2_h center"> <div class="box2_logo"><img src="{THEME_PATH}ceshi/images/box2_logo.png" class="img"></div> <div class="box2_name">更多行业案例及细节<br>可添加客服微信索取</div> </div> </div> <div class="box2_tit"> <div class="box2_h1">{$t2.title}</div> <div class="box2_h2"><img src="{THEME_PATH}ceshi/images/box2_ico.png"> {$t2.hits} 更多</div> </div> </a> </li> {/module} </ul> {/category} </div> </div> </div></div><script>jQuery(".slideTxtBox").slide({trigger: "click"});</script>成了 十分感谢 技术大大
  • lqggcs
    #19楼    lqggcs
    2022-01-13 12:01:33
    Chrome 0
    @LandQ:十分感谢 技术大大 中午还帮忙处理问题