{pboot:if('[nav:scode]'=='{sort:tcode}')}class="active"{/pboot:if} //用于非首頁
例:
01 02 03 04 | < code >{pboot:nav} < li {pboot:if('[nav:scode]'=='{sort:tcode}')} class = "active" {/pboot:if}>< a href = "[nav:link]" >[nav:name]</ a ></ li > {/pboot:nav} </ code > |
{pboot:if([nav:soncount]>0)}...{/pboot:if}
例 1:
01 02 03 04 05 06 07 08 09 10 11 12 | < code >{pboot:nav} < li >< a href = "[nav:link]" >[nav:name]</ a > <!--一級菜單循環(huán)--> {pboot:if([nav:soncount]>0)} <!--當有子菜單時顯示div-->
×
教程內(nèi)容BUG提交 提交 |