请老师检查
*{
margin: 0;
padding: 0;
}
header{
width: 100%;
height: 80px;
background-color: #07cbc9;
}
header .header-wrap{
width: 1200px;
height: 80px;
margin: 0 auto;
}
header .header-wrap .logo{
float: left;
padding: 16px 0;
width: 200px;
height: 48px;
color:#fff;
font-size: 24px;
line-height: 48px;
text-align: center;
font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
header nav{
float: right;
width: 700px;
height: 80px;
}
header nav ul{
list-style: none;
}
header nav ul li{
float: left;
width: 100px;
height: 80px;
margin-right: 20px;
}
header nav ul li:last-child{
margin-right: 0;
}
header nav ul li a{
display: block;
font-size: 16px;
text-decoration: none;
color:#fff;
width: 100px;
height: 80px;
text-align: center;
line-height: 80px;
}
header nav ul li a:hover{
background-color: #fff;
color:#07cbc9;
}
13
收起
正在回答
2回答
同学你好,代码效果实现正确,继续加油,祝学习愉快!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星