您的位置:首页 > Web前端 > CSS

css之盒子模型

2018-01-22 10:08 239 查看
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title></title>

<style>
*{margin:0;padding:0;}
.top{width:100%; height: 50px; background: #cee8fc}
.top_content{width: 75%; height: 50px; background: #5ba8ee; margin: 0 auto;}
.body{width: 75%; height: 950px; background: gray; margin: 0 auto;}
.banner{width: 100%; height: 350px;background: #d5b9ae; }
.body_content{width: 100%; height: 600px; background: #fcc;}
.footer{margin: 0 auto; width: 75%; height:300px background: #ffc;}
</style>
</head>

<body>
<div class="top">
<div class="top_content"></div>
</div>
<div class="body">
<div class="banner"></div>
<div class="body_content"></div>
</div>
<div class="footer"></div>
</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: