2-13练习题
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
#big{
width: 1000px;
height: 400px;
background: #BFF5FA;
position: absolute;
left: 0;
right:0;
top: 0;
bottom: 0;
margin:auto auto;
}
#banner{
width: 100%;
height: 60%;
}
img{
display: block;
}
#left-banner{
margin: 10px 90px;
float:left;
}
#right-banner{
margin:10px 90px 10px 0;
float: left;
}
#footer{
width: 100%;
height: 40%;
background: #F6D7D7;
}
#footer1{
float:left;
margin:50px 50px 0 100px;
}
#footer2,#footer3{
float:left;
margin:50px;
}
</style>
</head>
<body>
<div id="big">
<div id="banner">
<div id="left-banner"><img src="http://img1.sycdn.imooc.com/climg//58c0f819000198a703600214.jpg" alt=""></div>
<div id="right-banner"><img src="http://img1.sycdn.imooc.com/climg//58c0f808000129a303600215.jpg" alt=""></div>
</div>
<div id="footer">
<div id="footer1"><img src="http://img1.sycdn.imooc.com/climg//58c0f81d0001fe4402000060.jpg" alt=""></div>
<div id="footer2"><img src="http://img1.sycdn.imooc.com/climg//58c0f8220001dfce02000060.jpg" alt=""></div>
<div id="footer3"><img src="http://img1.sycdn.imooc.com/climg//58c0f8780001c74602000060.jpg" alt=""></div>
</div>
</div>
</body>
</html>这样写有没有问题
26
收起
正在回答 回答被采纳积分+1
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星