联系官方销售客服
1835022288
028-61286886
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<li class="am-active"><a target="_blank" href="#">首页</a></li>
<li><a target="_blank" href="#">项目</a></li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" data-am-dropdown-toggle target="_blank" href="javascript:;">
下拉 <span class="am-icon-caret-down"></span>
</a>
<ul class="am-dropdown-content">
<li class="am-dropdown-header">标题</li>
<li><a target="_blank" href="#">1. 去月球</a></li>
<li class="am-active"><a target="_blank" href="#">2. 去火星</a></li>
<li><a target="_blank" href="#">3. 还是回地球</a></li>
<li class="am-disabled"><a target="_blank" href="#">4. 下地狱</a></li>
<li class="am-divider"></li>
<li><a target="_blank" href="#">5. 桥头一回首</a></li>
</ul>
</li>
</ul>
这个是自我自己 嵌套的
<ul class="am-nav am-nav-pills am-topbar-nav">
<li class="{if $indexc}am-active{/if}"><a href="{SITE_URL}" title="{SITE_TITLE}">首页</a></li>
{list action=category module=share pid=0 } <!--第一层-->
<li class="menu-dropdown classic-menu-dropdown am-dropdown-toggle {if $catid && in_array($catid, $t.catids)} am-active{/if}"> <a href="{$t.url}" title="{$t.name}">{$t.name}</a> {if $t.child}</li>
{list action=category module=share pid=$t.id return=t2}
<li class="am-dropdown" data-am-dropdown> <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:; {if $catid && in_array($catid, $t.catids)} am-active{/if}">
新闻动态<span class="am-icon-caret-down"></span></a>
<ul class="am-dropdown-content">
<li class="am-dropdown-header {if $t2.child} dropdown-submenu{/if} {if $catid && in_array($catid, $t2.catids)}am-active{/if}">
<a href="{$t2.url}" title="{$t2.name}">{$t2.name}</a>
</li>
</ul>
</li>
{/list}
{/if}
{/list}
{list action=cache name=module}
{if !$t.share}
<li class="menu-dropdown classic-menu-dropdown {if (MOD_DIR && $t.dirname==MOD_DIR)}am-active{/if}"> <a href="{$t.url}" title="{$t.title}">{$t.name}</a> </li>
{/if}
{/list}
</ul>
麻烦把代码嵌套哈