迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協議發(fā)布,不限制商業(yè)使用,以多端互聯為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統(tǒng)。
業(yè)務經理
微信掃描以上二維碼
028-61286886
技術咨詢
大佬們 列表頁 如何給二級欄目加高亮樣式
還有列表頁如何加篩選功能就像這種
求你不要把代碼截圖,改都沒辦法給你改,,,
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
{category module=share pid=37} {$t.name}{/category}
代碼是這樣的
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 是當前欄目 {/if} {$t.name} {/category}
沒看明白
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 給二級欄目加高亮 {/if} {$t.name} {/category}
很簡單的邏輯
回復@歐爾麥特
{category module=share pid=37} /if}> {$t.name} {/category}
沒用啊 都顯示的是高亮
{category module=share pid=37} <a href="{$t.url}" {if in_array($t.id,$cat.catids)} class="active" {/if}> {$t.name} </a> {/category} 代碼是這樣
{if $t.id == $catid} 給二級欄目加高亮 {/if}
沒啥用啊 {category module=share pid=37} <a href="{$t.url}" {if $t.id == $catid} class="active" {/if} >{$t.name}</a> {/category} 展示出來的效果是
回復@靠懸賞(設置懸賞)賺錢買授權
{category module=share pid=37} <a target="_blank" href="{$t.url}" {if IS_SHARE && $catid && in_array($catid, $t.catids)} class="active"{/if}> {$t.name} </a> {/category}
回復@Alvin 試過了 還是不行
回復@Alvin 好了 謝謝
還有列表頁如何加篩選功能

就像這種
求你不要把代碼截圖,改都沒辦法給你改,,,
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
{category module=share pid=37} {$t.name}{/category}代碼是這樣的
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 是當前欄目 {/if} {$t.name} {/category}開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
沒看明白
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 給二級欄目加高亮 {/if} {$t.name} {/category}很簡單的邏輯
回復@歐爾麥特
{category module=share pid=37} /if}> {$t.name} {/category}沒用啊

都顯示的是高亮
{category module=share pid=37} <a href="{$t.url}" {if in_array($t.id,$cat.catids)} class="active" {/if}> {$t.name} </a> {/category} 代碼是這樣{if $t.id == $catid} 給二級欄目加高亮 {/if}沒啥用啊 {category module=share pid=37} <a href="{$t.url}" {if $t.id == $catid} class="active" {/if} >{$t.name}</a> {/category} 展示出來的效果是回復@靠懸賞(設置懸賞)賺錢買授權
{category module=share pid=37} <a target="_blank" href="{$t.url}" {if IS_SHARE && $catid && in_array($catid, $t.catids)} class="active"{/if}> {$t.name} </a> {/category}回復@Alvin 試過了 還是不行
回復@Alvin 好了 謝謝