<ul id="nav" class="nav"> <li class="nLi {dede:field name=typeid runphp="yes"}(@me=="")? @me="on":@me="";{/dede:field}"> <h3><a href="{dede:global.cfg_cmspath/}/">网站首页</a></h3> </li> {dede:channel type='top' currentstyle=" <li class='nLi on'> <h3><a href='~typelink~'>~typename~</a></h3> </li> "} <li class="nLi"> <h3><a href="[field:typeurl/]">[field:typename/]</a></h3> </li> {/dede:channel}
</ul>