Home  >  Article  >  Web Front-end  >  dedecms织梦特定条件下,隐藏特定栏目的方法,通过css实现_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-21 09:06:23995browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn