有人可以帮忙解答下,怎么修改设置照片的边距相等啊
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
form,body{
margin:0px;
}
.container{
width:1400px;
height:380px;
text-align:center;
}
.d1{
margin-top:100px;
width:100%;
height:70%;
background-color:lightblue;
}
.d2{
width:100%;
height:30%;
background-color:lightcoral;
}
.big{
margin-top:30px;
margin-left:80px;
}
.small{
margin-top:15px;
margin-left:80px;
}
</style>
</head>
<body>
<div class="cntainer">
<div class="d1">
<img class="big" src="http://img1.sycdn.imooc.com/climg//58c0f808000129a303600215.jpg">
<img class="big" src="http://img1.sycdn.imooc.com/climg//58c0f819000198a703600214.jpg">
</div>
<div class="d2">
<img class="small" src="http://img1.sycdn.imooc.com/climg//58c0f81d0001fe4402000060.jpg">
<img class="small" src="http://img1.sycdn.imooc.com/climg//58c0f8220001dfce02000060.jpg">
<img class="small" src="http://img1.sycdn.imooc.com/climg//58c0f8780001c74602000060.jpg">
</div>
</div>
</body>
</html>
正在回答 回答被采纳积分+1
- 参与学习 人
- 提交作业 626 份
- 解答问题 4928 个
想要学好Web后端开发的中流砥柱语言,本阶段为你轻松铺就扎实的基础,从前端网页布局的搭建到后台PHP开发,助你从零基础到掌握主流开发语言。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星