三个图片之间有缝隙,怎么去除啊
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
/*此处写代码*/
*{
padding: 0;
margin: 0;
color: #cfcfcf;
font-family: "微软雅黑";
list-style: none;
font-size:20px;
text-decoration: none;
}
.head{
width: 100%;
height: 100px;
background: #000;
margin: 0 auto;
position: fixed;
top: 0;
}
.logo{
float: left;
}
.nav{
width: 65%;
height: 100px;
line-height: 100px;
float: right;
text-align: center;
}
.nav ul li{
display: inline;
margin-left: 50px;
}
.container{
width: 100%;
height: 1060px;
background: #fff;
margin: 0 auto;
margin-top: 100px;
}
.container a img{
width: 100%;
height: 300px;
}
.foot{
width: 100%;
height: 150px;
line-height: 150px;
background: #000;
text-align: center;
position: fixed;
bottom: 0;
}
.foot ul li{
display: inline;
margin-left: 50px;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="head">
<div class="logo">
<a href="#"> <img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png" /></a>
</div>
<div class="nav">
<ul>
<a href="#"><li>课程</li></a>
<a href="#"><li>职业路径</li></a>
<a href="#"><li>实战</li></a>
<a href="#"><li>猿问</li></a>
<a href="#"><li>手记</li></a>
</ul>
</div>
</div>
<div class="container">
<a href="#"> <img src="http://img1.sycdn.imooc.com/climg//58c0eda50001e12416000480.jpg" /></a>
<a href="#"> <img src="http://img1.sycdn.imooc.com/climg//58c0edb80001c9f216000480.jpg" /></a>
<a href="#"> <img src="http://img1.sycdn.imooc.com/climg//58c0edc9000100d516000480.jpg" /></a>
</div>
<div class="foot">
<ul>
<a href="#"><li>网站首页</li></a>
<a href="#"><li>企业合作</li></a>
<a href="#"><li>人才招聘</li></a>
<a href="#"><li>联系我们</li></a>
<a href="#"><li>常见问题</li></a>
<a href="#"><li>友情链接</li></a>
</ul>
</div>
</body>
</html>1
收起
正在回答 回答被采纳积分+1
1回答
相似问题
登录后可查看更多问答,登录/注册
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程


恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星