聯系官方銷售客服
1835022288
028-61286886
二級導航欄如何實現兩級選中 ?
{category module=share id=1,2,3 } <li><a href="{$t.url}"><button {if $cat.id == $t.id} class="active" {/if}>{$t.name}</button></a> {if $t.child} <div class="baikeList"> {category module=share pid=$t.id return=c} <a href="{$c.url}" {if $c.id == $cat.id} class="active"{/if}>{$c.name}</a> {/category} </div> {/if} </li> {/category}
目前只能實現 選中 當前 欄目ID 如何能實現選中兩級
寫法錯了,你參考默認模板header。html的寫法
感謝,大佬,解決問題
改成
默認模板現成的寫法,哈哈