首页 > Web开发 > 详细

html5 布局

时间:2015-05-09 18:57:27      阅读:294      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">

<style type="text/css">
body{
margin: 0px;
/* 任意一个距离都为0*/
}
div#container{
width: 100%;
height: 950px;
background-color: orange;
}
div#heading{
width: 100%;
height: 10%;
background-color: aqua;
}
div#content_menu{

width: 30%;
height: 80%;
background-color: yellow;
float: left;

}

div#content_body{
width: 70%;
height: 80%;
background-color: blue;
float: left;
}
div#footing{
width: 100%;
height: 10%;
background-color: black;
clear: both;

}
</style>
</head>
<body>
<div id="container">
<div id="heading">头部</div>
<div id="content_menu">内容菜单</div>
<div id="content_body">内容主体</div>
<div id="footing">底部</div>
</div>

</body>
</html>

html5 布局

原文:http://www.cnblogs.com/xiezefeng/p/4490793.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!