<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms织梦特定条件下,隐藏特定栏目的方法,通过css实现

时间:2020-12-15

一,如果栏目后台设置显示,前台怎么隐藏?
01   定义css样式.hidden{display:nidden}
02  
03 因为栏目id为6的栏目是关于我们等非核心栏目,不想在导航上显示,但在后台又没有设置隐藏,设置隐藏了前台的其它栏目页就没法调用他了.所以,在导航条上要处理一下
04  
05 {dede:channel type='top' row='10'
06  
07      currentstyle="<li class='active'><a href='~typelink~' ~rel~>~typename~</a></li>"}
08  
09        <li  class="[field:id runphp='yes']
10  
11   if(@me=='6') @me = 'hidden'else @me = '';[/field:id]" ><a href='[field:typeurl/]'>[field:typename/]</a></li>
0