我的 CSS 是:
#menu {
background-color: #a40a0a;
width: 830px;
height: 36px;
position: relative;
top: 39px;
left: 172px;
}
#menu >ul {
list-style-type: none;
}
#menu ul li {
font-family: Arial, Helvatica, Verdana;
}
#menu ul li >a {
display: block;
float: left;
text-decoration: none;
color: #ffffff;
line-height: 36px;
width: 166px;
text-align: center;
}
#menu ul li >a:hover {
background-color: #d74343;
border-bottom: 2px solid #bc1515;
line-height: 34px;
}
#menu ul li >a:active {
background-color: #a40a0a;
}
此菜单看起来不正确 ie7 及以下。如果是错的,请告诉我正确的,谢谢。