channel标记做的简单栏目筛选 ,这个【全部】按钮 ,怎么加入curren样式?
也就是【全部】选中后变色 ,不选中时为默认颜色


实现代码
<li><a href='{dede:field.typeid runphp=yes}global $dsql;$topid = GetTopid(@me);$row = $dsql->GetOne("SELECT * FROM `dede_arctype` WHERE id=$topid");@me = GetOneTypeUrlA($row);{/dede:field.typeid}'{dede:field.topid runphp=yes}@me = @me ? '' : ' class="current"';{/dede:field.topid}>全部</a></li>{dede:channel currentstyle="<li><a href='~typelink~' class='current'>~typename~</a></li>"}<li><a href='[field:typeurl/]'>[field:typename/]</a></li>{/dede:channel}
注意上面的 class='current' 改成自己的高亮样式