校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 織夢(mèng)欄目高亮channel屬性currentstyle使用詳解

織夢(mèng)欄目高亮channel屬性currentstyle使用詳解

POST TIME:2017-11-13 00:16

織夢(mèng)被點(diǎn)擊的欄目高亮顯示方法詳解,織夢(mèng)欄目高亮channel屬性currentstyle使用詳解,廢話不多說(shuō)直接舉例說(shuō)明:

織夢(mèng)channel屬性currentstyle的例子:

  • {dede:channel type='self' currentstyle="<li class='thisclass'><a href='~typelink~'><span>~typename~</span></a></li>"}
  • <li><a href='[field:typeurl/]'><span>[field:typename/]</span></a></li>
  • {/dede:channel}

看例子樣式,通過(guò)對(duì)當(dāng)前欄目列表設(shè)置了class='thisclass',為其設(shè)置背景顏色,這樣更加利于用戶(hù)查看。

織夢(mèng)channel屬性currentstyle用法分析:
  • currentstyle="<li class='thisclass'><a href='~typelink~'><span>~typename~</span></a></li>"此為current的語(yǔ)法。
  • <li class='thisclass'><a href='~typelink~'><span>~typename~</span></a></li>這為樣式。
  • 和<li><a href='[field:typeurl/]'><span>[field:typename/]</span></a></li>不同的是<li>多了個(gè)class屬性控制。

如果還清楚的話可以這么進(jìn)一步拆分:

  • <li class='thisclass'>
  • <a href='~typelink~'>
  • <span>~typename~</span>
  • </a>
  • </li>

現(xiàn)在應(yīng)該明白了吧,再不明白請(qǐng)留言!



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢(xún)

  • 400-1100-266
主站蜘蛛池模板: 蒲城县| 泸水县| 台中县| 灯塔市| 正定县| 靖远县| 淮滨县| 宣化县| 东至县| 茌平县| 武城县| 张家川| 观塘区| 商洛市| 绥中县| 万年县| 安岳县| 清原| 夏津县| 丘北县| 苍溪县| 怀来县| 南皮县| 法库县| 当涂县| 土默特右旗| 余姚市| 会理县| 潢川县| 明溪县| 徐水县| 精河县| 清镇市| 张家川| 修武县| 桂林市| 赤峰市| 诸城市| 彭泽县| 治县。| 乌拉特后旗|