<html>
<head>
<title>高度伸缩</title>
<style type="text/css">
* {margin:0px; padding:0px; list-style-type:none; font-size:14px; }
.nav {border-bottom:5px solid red;}
.nav ul{ height:30px; margin-top:30px; padding-left:30px;}
.nav ul li a{ width:120px; height:30px; line-height:30px; text-decoration:none;
background-color:#999; display:block; float:left; text-align:center;
}
.on,.nav ul li a:hover{ color:white; background-color:red; height:40px; margin-top:-10px;
line-height:40px;
}
</style>
</head>
<body>
<div class="nav">
<ul>
<li>
<a class="on" href="#">首页</a>
<a href="#">问题</a>
<a href="#">芝士蛋糕</a>
<a href="#">电信股份</a>
</li>
</ul>
</div>
</body>
</html>
这不是我想要的答案(这是得出来的结果!)
这才是我想要的答案!!!
煎蛋的少年
一杯2块的奶茶