业务经理

微信扫描以上二维码

028-61286886

技术咨询

方案

  • 王小五 #1 · 2022-10-30 23:07:37

    image
    代码错了, >改成
  • 王小五 #2 · 2022-10-30 23:19:59
    <li class={if $c.id == cat.cid} class="active open" {if} >
    你看看这样对不对!
  • #3 · 2022-10-30 23:45:36
    class 里面套 class 是啥写法 ,看下下面哪个能用到
    
    
    <li {if $c.id == cat.cid} class="active open" {if} >  
    
    <li class="{if $c.id == cat.cid}active open{if}"  >
  • #4 · 2022-10-30 23:46:59
    改了下少了个 $
    <li {if $c.id == $cat.cid} class="active open" {if} >  
    
    <li class="{if $c.id == $cat.cid}active open{if}"  >
  • 天荣科技 #5 · 2022-10-31 09:52:09
    无 似乎都不行呢?
  • 天荣科技 #6 · 2022-10-31 09:55:02
    王小五 似乎不行呢?报错
    image
  • #7 · 2022-10-31 09:57:17
    天荣科技 当前栏目高亮
    {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}
  • 天荣科技 #8 · 2022-10-31 10:11:35
    {loop $related $c} <li {if $c.id==$cat.id} class="active"{/if} > <a href="{$c.url}" title="{$c.name}">{$c.name}</a></li> {/loop}这样就可以了呢?
  • 天荣科技 #9 · 2022-10-31 10:12:12

    {loop $related $c}

    <li {if $c.id==$cat.id} class="active"{/if} >

    <a href="{$c.url}" title="{$c.name}">{$c.name}</a></li>

    {/loop}

    这样就可以了呢?

  • jqyy #10 · 2022-11-01 14:24:14
    当前栏目高亮:<li class="{if in_array($catid,$c.catids}active open{if}">

迅睿系统漏洞

导入微信文章
导入微信文章(2026-09-15)
优化排版缺少文字情况
GEO系统
GEO系统(2026-09-15)
运营客户端,防止误触阴影处关闭对话框
独立站群系统
独立站群系统(2026-09-14)
子站独立部署时修复同步附件失败问题
在线客服
在线客服(2026-09-13)
修复删除会话报错问题 删除会话时联动删除聊天图片
在线考试竞赛系统
在线考试竞赛系统(2026-09-12)
增加投票功能 考试功能拓展 注意:更新后需要执行系统更新,更新数...
网上信箱
网上信箱(2026-09-12)
修复新版本兼容问题
GeoSeo收录宝
GeoSeo收录宝(2026-09-12)
1 优化Update.php文件,解决版本在线升级不完整问题 2 ...
GeoSeo工具箱
GeoSeo工具箱(2026-09-11)
修正历史记录推送
微信系统
微信系统(2026-09-11)
增加数据统计总览界面 账号管理增加服务和公众号的区别 菜单管理支持更...
答题系统
答题系统(2026-09-11)
一站式在线答题系统,支持真题考试、题库练习和错题本,适合培训、考证、...