HTML
<ul>
<li></li>
<li class="invisible"><li>
</ul>
CSS
.invisible {
display: none;
}
题
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