老师帮我检查下代码,感觉好多错误的地方,内容之间图片有黑色缝隙、以及头部导航栏居中问题,请老师解答下
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
body{margin:0;padding:0;width:100%;height:auto;font-family:微软雅黑;font-size:20px;text-align:center;background:black;}
.header{
width:100%;height:100px;background:black;position:fixed;top:0px;
}
.header div{float:left;
}
.header div img{display:block;}
.nav{
float:right;
height:100px;
margin:0;
}
.header .nav li{
list-style:none;
margin-right:50px;
color:white;
float:left;
line-height:100px;
}
.bodyer{
width:100%;height:600px;
}
.bodyer div img{margin:0;padding:0;}
.footer{
width:100%;height:100px;background:black;position:fixed;bottom:0px;text-align:center;
}
p{
height:100px;
word-spacing:100px;
margin:0;
line-height:100px;
}
a{
color:white;
}
/*此处写代码*/
</style>
</head>
<body>
<div class="header">
<div><img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png"/></div>
<ul class="nav">
<li>课程</li>
<li>职业路径</li>
<li>实战</li>
<li>猿问</li>
<li>手记</li>
</ul>
</div>
<div class="bodyer">
<div><img src="http://img1.sycdn.imooc.com/climg//58c0eda50001e12416000480.jpg"/></div>
<div><img src="http://img1.sycdn.imooc.com/climg//58c0edb80001c9f216000480.jpg"/></div>
<div><img src="http://img1.sycdn.imooc.com/climg//58c0edc9000100d516000480.jpg"/></div>
</div>
<div class="footer">
<p>
<a>页脚</a>
<a>页脚</a>
<a>页脚</a>
<a>页脚</a>
<a>页脚</a>
<a>页脚</a>
</p>
</div>
<!-- 此处写代码 -->
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星