元素模板为您解答:
<li {pboot:if(0=='{sort:scode}')}class="active"{/pboot:if}><a href='{pboot:sitedomain}/'>首页</a></li> {pboot:nav} <li {pboot:if('[nav:scode]'=='{sort:tcode}')}class="active"{/pboot:if}><a href="[nav:link]">[nav:name]</a> {pboot:if([nav:soncount]>0)} <ul> {pboot:2nav parent=[nav:scode]} <a href="[2nav:link]">[2nav:name]</a> {/pboot:2nav} </ul> {/pboot:if} </li> {/pboot:nav}