a 标签的颜色不能通过继承来的
a 标签一定要设置宽度和高度
border-redius: 3px;
ul {
list-style: none;
}
.nav{
width:960px;
overflow: hidden;
margin: 100px auto 0;
backupground-color: purple;
border-radius: 5px; # 设置圆角
}
.nav ul li{
float: left;
width: 160px;
height: 40px;
line-height: 40px;
text-align: center;
}
.nav ul li a{
display: block;
width: 160px;
height: 40px;
color: white;
text-decoration: none;
font-family: 'Hanzipen SC';
}