<!doctype html>
<html lang="en">
<head>
<title>Document</title>
<meta charset="UTF-8">
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
<!-- IE=edge表示强制使用IE最新内核,chrome=1表示如果安装了针对IE6/7/8等版本的浏览器插件Google Chrome Frame(可以让用户的浏览器外观依然是IE的菜单和界面,但用户在浏览网页时,实际上使用的是Chrome浏览器内核),那么就用Chrome内核来渲染。
-->
<script type="text/javascript" src="js/html5shiv.js"></script> <!--让IE8兼容h5的标签-->
<style type="text/css">
body{
clear: both;
*zoom:1;
}
body:after{
content: '';
display: block;
clear: both;
visibility: hidden;
height: 0px;
}
header{
100%;
height: 100px;
border: 1px solid #666;
float: left;
margin-bottom: 60px;
}
footer{
100%;
height: 100px;
border: 1px solid #666;
margin-top: 100px;
float: left;
}
section{
80%;
height: 300px;
border: 1px solid #666;
float: left;
box-sizing: border-box;
}
aside{
20%;
height: 300px;
border: 1px solid #666;
float: right;
box-sizing: border-box;
}
footer:nth-of-type(1){
background: #ccc;
}
</style>
</head>
<body>
<header>头部</header>
<section>
<input type="email" name="#" placeholder="请输入">
</section>
<aside>侧边栏
</aside>
<footer>底部内容</footer>
</body>
</html>