请老师帮忙检查下,混合布局
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{margin:0;padding:0;}
.subject{width:100%;height:800px;background:red;}
/*top*/
.top{width:100%;height:600px;background:cyan;text-align: center;}
.top img{width:400px;height:300px;}
.css,.html{width:400px;height:300px;}
.css{float: left;margin-top:150px;margin-left:20%;}
.html{float: right;margin-top:150px;margin-right:20%;}
/*bottom*/
.bottom{width:100%;height:200px;text-align: center;}
.bottom img{height:100px;margin-top:50px;}
.img1{float: left;margin-left:150px;}
.img3{float: right;margin-right:150px;}
</style>
</head>
<body>
<div class="subject">
<div class="top">
<div class="css"><img src="http://img1.sycdn.imooc.com/climg//58c0f808000129a303600215.jpg"/></div>
<div class="html"><img src="http://img1.sycdn.imooc.com/climg//58c0f819000198a703600214.jpg"/></div>
</div>
<div class="bottom">
<!--<div class="logo">-->
<img class="img1" src="http://img1.sycdn.imooc.com/climg//58c0f81d0001fe4402000060.jpg"/>
<img class="img2" src="http://img1.sycdn.imooc.com/climg//58c0f8220001dfce02000060.jpg"/>
<img class="img3" src="http://img1.sycdn.imooc.com/climg//58c0f8780001c74602000060.jpg"/>
<!--</div>-->
</div>
</div>
</body>
</html>
感觉问题很多,请老师帮助下
请问那些部分需要修改或者优化呢?
请问top部分可以像bottom部分一样写吗。 3块img图片怎么判断相隔的边距呢?
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星