我试图制作一个导航内嵌列表。你可以在这里找到它:http://www.luukratief-design.nl/dump/parallax/para.htmlCSS列表项宽度/高度不起作用
由于某些原因,它不显示LI的宽度和高度。这是片段。这有什么问题?
.navcontainer-top li {
font-family: "Verdana", sans-serif;
margin: 0;
padding: 0;
font-size: 1em;
text-align: center;
display: inline;
list-style-type: none;<br>
width: 117px;
height: 26px;
}
.navcontainer-top li a {
background: url("../images/nav-button.png") no-repeat;
color: #FFFFFF;
text-decoration: none;
width: 117px;
height: 26px;
margin-left: 2px;
margin-right: 2px;
}
.navcontainer-top li a:hover {
background: url("../images/nav-button-hover.png") no-repeat;
color: #dedede;
}
非常感谢你!帮助我很多 – Luuk 2010-02-19 09:56:51