87,907
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML>
<head>
<meta charset="GBK" >
<title>title</title>
<style type="text/css">
*{padding:0;margin:0;}
html,body{height:100%;}
.header{width:100%;height:100px;position:absolute;left:0;top:0;z-index:3;background:#0f0;}
.sidebar{width:120px;height:100%;position:absolute;left:0;top:0;z-index:2;background:#f00;}
.sidebar .inner{padding-top:100px;}
.bodyer{width:100%;height:100%;overflow:hidden;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;padding:100px 0 0 120px;position:absolute;left:0;top:0;z-index:1;background:#0ff;}
.bodyer .inner{width:100%;height:100%;overflow:auto;}
</style>
</head>
<body>
<div class="header">
header
</div>
<div class="sidebar">
<div class="inner">sidebar</div>
</div>
<div class="bodyer">
<div class="inner">
<div style="width:200px;height:1200px;">content</div>
</div>
</div>
</body>
</html>