目录页css效果为何出不来呢 迅睿框架 更新 2022-11-01 14:24:14 天荣科技 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}
这样就可以了呢?