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

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 在頂級欄目下沒有二級欄目就不增加class樣式 2 0
fensvip 免費用戶 2022-01-06 21:04:19 私信
迅睿CMS版本:4.5.4 #模板代碼 #二級欄目

模板標簽里面

首頁導航欄,如果在頂級欄目下沒有二級欄目就不增加class樣式,以及結尾的|隔條


微信圖片_20220106204052

<li class="dropdown">

模板代碼:



模板代碼.txt


生成后代碼:



生成后代碼.txt


CSS代碼:



CSS代碼.txt

下面是

li_07.jpg
https://file.xunruicms.com/gwbbs/ueditor/image/202201/16414737306204f4.jpg


li_07

需要達到的效果是


2022010620580001

解決方案
  • <div class="nav">
        <div class="container">
            <ul>
                <li{if $indexc} class="active"{/if}>
                    <a href="{SITE_URL}" title="{SITE_NAME}">首頁</a>
                </li>
                {category module=share pid=0}
                <li class="{if $t.child}dropdown{/if}{if IS_SHARE && $catid && dr_in_array($catid, $t.catids)} active{/if}"{if $is_last} style="background-image:none;"{/if}>
                    {if $t.child}<i class="arr"></i>{/if}
                    <a href="{$t.url}" title="{$t.name}"{if $t.tid==2} target="_blank"{/if}>{$t.name}</a>
                    {if $t.child}
                    <div class="dropdown-box">
                        {category module=share pid=$t.id return=t2}
                        <p><a href="{$t2.url}" class="nav-link nav-toggle" title="{$t2.name}">{$t2.name}</a></p>
                        {/category}
                    </div>
                    {/if}
                </li>
                {/category}
            </ul>
        </div>
    </div>
    滿意答案
    短信幣+1
    高端程序員往往采用最樸素的編程方式,若不是貧窮,誰愿意弄的自己一身才華!
  • 看自帶模板代碼,有一個if child那一段
  • @LandQ:完美,但是我還要研究一下具體寫法,才從dede轉過來,懵懵懂懂。