经典布局之双飞翼布局

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
padding:0;
margin:0;
}
body{
padding-bottom: 30px;
}
header{
height:30px;
width:100%;
background:green;
}
.main{
overflow: hidden;
position:absolute;
top:30px;
bottom:30px;
padding:0 30px;
}
.main-l{
position:absolute;
left:0;
top:0px;
bottom:0px;
width:30px;
background: red;
}
.main-r{
position:absolute;
top:0;
bottom:0;
right:0;
background:red;
width:30px;
}
.main-m{
background: pink;
width:100%;
}
footer{
width:100%;
height:30px;
background:yellow;
position:fixed;
bottom:0;
}
</style>
</head>
<body>
<div id="father">
<header>头部</header>
<div class="main">
<div class="main-m">中间弹性区梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润梵蒂冈投入工会日女VR柔柔弱弱润肤乳daswtghy3</div>
<div class="main-l">左边栏</div>
<div class='main-r'>右边栏</div>
</div>
<footer>底部</footer>
</div>
<script type="text/javascript">

</script>
</body>
</html>

 

posted @ 2017-05-29 11:18  我家的狗有思密达  阅读(35)  评论(0)    收藏  举报