您的位置:首页 > 帮助 > 标签手册 > 导航栏调用
导航栏调用
发布时间:2022-11-07    编辑:admin    浏览次数:1880 次    [   ]

<ul class="menu">    <li{leaf:if $index} class="active"{/leaf:if}><a href="{leaf.site.url}">首页</a></li>    {leaf:nav }&nbs
<ul class="menu">
    <li{leaf:if $index} class="active"{/leaf:if}><a href="{leaf.site.url}">首页</a></li>
    {leaf:nav }
    <li class="{leaf:if $nav[child]}dropdown{/leaf:if}{leaf:if $on} active{/leaf:if}">
        {leaf:if $nav[child]}
        <div class="dropdown-box">
            {leaf:nav parent_id=$nav[id]}
            <p><a href="{leaf.nav.url}">{leaf.nav.name}</a></p>
            {/leaf:nav}
        </div>
        {/leaf:if}
    </li>
    {/leaf:nav}
</ul>


嘿,我来帮您!