css|设计
HTML:
以下是引用片段: <div id="navcontainer"> <ul id="navlist"> <li id="active"><a href="#" id="current">Item one</a> <ul id="subnavlist"> <li id="subactive"><a href="#" id="subcurrent">Subitem one</a></li> <li><a href="#">Subitem two</a></li> <li><a href="#">Subitem three</a></li> <li><a href="#">Subitem four</a></li> </ul> </li> |
CSS:
以下是引用片段: #navcontainer { margin-left: 30px; } #navcontainer ul #navcontainer li { margin: 0; } #navcontainer a #navcontainer a:hover #navcontainer ul ul li { margin: 0; } #navcontainer ul ul a #navcontainer ul ul a:hover |
ABOUT THE CODE
Some lists within the Listamatic site had to be modified so that they could work on Listamatic's simple list model. When in doubt, use the external resource first, or at least compare both models to see which one suits your needs.
查看效果