ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 請問導航點擊跳轉后選中狀態怎么處理子欄目如何判斷技能競賽全國 3 0
迅睿CMS版本:4.6.0 #欄目

請問導航點擊跳轉后,選中狀態怎么處理?子欄目如何判斷

<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown">
技能競賽
</a>
<div class="dropdown-menu mt-0">
<a class="dropdown-item" href="zyds_index.html">全國職業院校</a>
<a class="dropdown-item" href="zzgs_index.html">省市級賽項</a>
<a class="dropdown-item" href="gzgs_index.html">行業賽</a>
</div>
</li>
解決方案
  • 默認模板的header頁面你可以參考一下手寫法

    參考文檔:《當前欄目高亮寫法》

  • <!--第一層:調用pid=0表示頂級-->
              {category module=share pid=0}
              <li class="nav-item dropdown {if IS_SHARE && $catid && in_array($catid, $t.catids)} active{/if}">
                <a class="nav-link {if !empty($t.pids)} dropdown-toggle{/if}" href=" " {if $t.tid==2} target="_blank"{/if} id="navbarDropdown">
                  {$t.name}
                </ a>
                {if $t.child}
                <div class="dropdown-menu mt-0">
                <!--第二層:調用第二級共享欄目-->
                   {category module=share pid=$t.id return=t2}
                  <a class="dropdown-item {if IS_SHARE && $catid && in_array($catid, $t2.catids)} active{/if}" href="{$t2.url}"><span class="iconfont">{html_entity_decode($t2.tubiao)}</span>{$t2.name}</ a>
                  {/category}
                  
                </div>
                {/if}
              </li>
               {/category}
    滿意答案
    短信幣+1
    有事加微信13139129987
  • 一樓二樓的方法對,其實就在默認模板里面有現成的代碼

  • @琉惗:可以謝謝