首页 > Web开发 > 详细

html5之页面布局

时间:2020-02-05 22:07:57      阅读:80      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>布局</title>

<style type="text/css">
body{
margin:0px;
}
div#contain{
width:100%;
height:950px;
background-color:darkgray;
}
div#heading{
width:100%;
height:10%;
background-color:darkred;
}
div#menu{
width:70%;
height:80%;
background-color:blueviolet;
float:left;
}
div#body{
width:30%;
height:80%;
background-color:darkgreen;
float:left;
}
div#footing{
width:100%;
height:10%;
background-color:greenyellow;
clear:both;
}

</style>
</head>
<body>
<div id="contain">
<div id="heading">头部</div>
<div id="menu">菜单</div>
<div id="body">主体</div>
<div id="footing">尾部</div>
</div>

</body>
</html>

html5之页面布局

原文:https://www.cnblogs.com/cxydnxs/p/12266860.html

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