迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經理
微信掃描以上二維碼
028-61286886
技術咨詢
http://dljz.tianrongcms.cn/index.php?c=category&id=19
這一頁點擊后的css效果為何出不來呢?
附上代碼:
代碼錯了, >改成}
<li class={if $c.id == cat.cid} class="active open" {if} >
你看看這樣對不對!
class 里面套 class 是啥寫法 ,看下下面哪個能用到 <li {if $c.id == cat.cid} class="active open" {if} > <li class="{if $c.id == cat.cid}active open{if}" >
改了下少了個 $ <li {if $c.id == $cat.cid} class="active open" {if} > <li class="{if $c.id == $cat.cid}active open{if}" >
回復@無 似乎都不行呢?
回復@王小五 似乎不行呢?報錯
回復@天榮科技
當前欄目高亮
{category module=share pid=$top.id} <li class=" {if IS_SHARE && $catid && in_array($catid, $t.catids)} active {/if}" > <a href="{$t.url}">{$t.name}</a> </li> {/category}
{loop $related $c}
<li {if $c.id==$cat.id} class="active"{/if} >
<a href="{$c.url}" title="{$c.name}">{$c.name}</a></li>
{/loop}
這樣就可以了呢?
當前欄目高亮:
<li class="{if in_array($catid,$c.catids}active open{if}">
代碼錯了, >改成}
<li class={if $c.id == cat.cid} class="active open" {if} >你看看這樣對不對!
class 里面套 class 是啥寫法 ,看下下面哪個能用到 <li {if $c.id == cat.cid} class="active open" {if} > <li class="{if $c.id == cat.cid}active open{if}" >改了下少了個 $ <li {if $c.id == $cat.cid} class="active open" {if} > <li class="{if $c.id == $cat.cid}active open{if}" >回復@無 似乎都不行呢?
回復@王小五 似乎不行呢?報錯

回復@天榮科技
當前欄目高亮
{category module=share pid=$top.id} <li class=" {if IS_SHARE && $catid && in_array($catid, $t.catids)} active {/if}" > <a href="{$t.url}">{$t.name}</a> </li> {/category}{loop $related $c}
<li {if $c.id==$cat.id} class="active"{/if} >
<a href="{$c.url}" title="{$c.name}">{$c.name}</a></li>
{/loop}
這樣就可以了呢?
{loop $related $c}
<li {if $c.id==$cat.id} class="active"{/if} >
<a href="{$c.url}" title="{$c.name}">{$c.name}</a></li>
{/loop}
這樣就可以了呢?
當前欄目高亮:
<li class="{if in_array($catid,$c.catids}active open{if}">