判斷當(dāng)前選中欄目樣式是吧.
{eyou:channel type='top' row='8' currentstyle='active'}
<li class="{$field.currentstyle}"><a href='{$field.typeurl}'>{$field.typename}</a> </li>
{/eyou:channel}
currentstyle='' 應(yīng)用樣式class類名
{$field.currentstyle} 輸出代碼
想了解更多請(qǐng)參考文案http://m.22321a.com/doc/label/all/492.html