문제

I have a web page and in that few menu item using <ul> <li>. I want one menu item to be invisible from the public. Can anybody tell me how to achieve this one?

도움이 되었습니까?

해결책 2

HTML

<ul>    
  <li></li>
  <li class="invisible"><li>
</ul>

CSS

.invisible {
  display: none;
}

다른 팁

Adding a class or id to the specific menu item and in css:

li.class {
display: none;
}

or with an ID

#id {
display: none;
}

you can set css propery of any li tag to display:none and to hide whole menu you can set ul tag css property to display:none

<ul style="display:none"> for whole menu

<li style="display:none"> for menu item one or more 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top