织梦导航 currentstyle 点击li添加class类 样式
<!--导航开始--> <div class="global_nav_wrap"> <ul class="nav nav-pills"> <li{dede:field name=typeid runphp="yes"}(@me=="")? @me=" class='nav-current'":@me="";{/dede:field}> <a class="dropdown-toggle" href="http://cn.prep-zone.cn/">首页</a></li> {dede:channelartlist typeid='top' row='18' currentstyle='nav-current'} <li class="{dede:field.currentstyle/}"> <a class="dropdown-toggle" href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a> <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4"> {dede:channel type='son'} <li><a tabindex="-1" href="[field:typelink/]">[field:typename/]</a></li> {/dede:channel} </ul> </li> {/dede:channelartlist} </ul> </div> <!--导航结束-->
为上述红色代码!