聯(lián)系官方銷售客服
1835022288
028-61286886
<div class="haiyan4Box otherBox custom-card hy_bj" id="otherBox">
<span class="otherBoxTab" id="otherBoxTab">
{list action=category module=z id=1,2,3,4,5,6,7,8,9,10,11,12,13 return=l}
<div {if $key_l==0}class="hy_active" {else}class="" {/if}>{$l.name}</div>
{/list}
</span>
<div class="otherBoxContent">
{list action=category module=z id=1 return=c1}
<div class="otherBoxContentItem {if $key_l==0}style="display:block;" {else}style="" {/if}">
{php $pidname=$ci->get_cache('module-'.SITE_ID.'-z', 'category', $t[catid], 'pid');}
<a href="{$t.url}" title="{$t.title}" target="_blank" class="otherBoxContentLeft">
<img class="smallPic" src="{dr_thumb($t.thumb, 184, 126)}" width="184px" height="126px" alt="{$t.title}">
<div class="otherBoxContentBar" id="otherBoxContentBar">{$t.title}</div>
</a>
</div>
{/list}
</div>
</div>
tab循環(huán) 按理說需要雙list循環(huán),但是我不會寫,,我上面的代碼意思是:上面的list循環(huán)的是二級欄目 下面的list循環(huán)的是二級欄目下的文章
忘記懸賞(設置懸賞)了,20元 解決了我會私發(fā)20元紅包
首先 你這個代碼就有問題,正確的嵌套是
你這樣的嵌套 只能把欄目先循環(huán)出來 再循環(huán)文章 至于能不能對應就不知道了
回復@九天網(wǎng)絡(JiuDay) 能不能幫我寫下來? 20元紅包奉上
不誠意,發(fā)個懸賞(設置懸賞)吧
回復@大神