联系官方销售客服
1835022288
028-61286886
<div class="ui navbar fluid six item menu">
<div class="ui container">
1、有二级分类的栏目是这样的样式
<div class="ui simple dropdown link item">
<span class="text">一级栏目1</span>
<i class="dropdown icon"></i>
<div class="menu">
<a class="item" href="#">全部</a>
<div class="divider"></div>
<div class="header"><i class="tags icon"></i>
分类:
</div>
<a class="item" href="#">二级栏目1</a>
<a class="item" href="#">二级栏目2</a>
<a class="item" href="#">二级栏目3</a>
<a class="item" href="#">二级栏目4</a>
2、二级菜单循环到最后最后一条时候添加一个分界线
<div class="divider"></div> //这里是分界线样式
<a class="item" href="#">二级栏目5</a>
</div>
</div>
3.、无二级菜单是这样的样式
<a class="item" href="/free_psd/">一级栏目2</a>
<a class="item" href="/patterns/">>一级栏目3</a>
<a class="item" href="/custom_shapes/">>一级栏目4</a>
</div>
</div>
<div class="ui navbar fluid six item menu"> <div class="ui container"> {list action=category module=share pid=0 return=t1} {if $t1.child} <div class="ui simple dropdown link item"> <span class="text">{$t1.name}</span> <i class="dropdown icon"></i> <div class="menu"> <a class="item" target="_blank" href="#">全部</a> <div class="divider"></div> <div class="header"><i class="tags icon"></i> 分类: </div> {list action=category module=share pid=$t1.catid return=t2} {if $key_t2>=$count_t2-1} <div class="divider"></div> //这里是分界线样式 {/if} <a class="item" href="{$t2.url}">{$t2.name}</a> {/list} </div> </div> {else} <a class="item" href="{$t1.url}">{$t1.name}</a> {/if} {/list} </div> </div>
{list action=category module=share pid=$t1.catid return=t2}改成
{list action=category module=share pid=$t1.id return=t2}