我試圖讓導航欄看起來像這樣:導航欄 - 高度/間距問題
我不能讓它正常工作,如何解決呢?
<ul class="subnav">
<li> <a href=""> Text One</a></li>
<li> <a href=""> Text Two</a></li>
<li> <a class="active" href=""> Text Three</a></li>
<li> <a href=""> Text Four</a></li>
</ul>
<style>
.subnav {
list-style:none;
border-bottom:1px solid #c7c4ba;
}
.subnav li{
display:inline;
font-size:14px;
margin-right:1px;
}
.subnav a:hover {
background-color:white;
color:black;
}
.subnav a {
background-color:#c7c4ba;
color:white;
text-decoration: none;
}
.subnav .active {
background-color:white;
color:#c61c25;
border:1px solid #c7c4ba;
}
</style>
喜歡的東西[這](http://jsfiddle.net/PQyL7/1/)? – kinakuta 2011-06-15 19:21:39