首页 > 其他 > 详细

左侧固定 右侧自适应 布局

时间:2015-07-01 12:05:21      阅读:126      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title></title> 
<style type="text/css"> 
* {margin:0; padding:0; list-style:none; } 
.wrapper{width: 100%; } 
.left {width:200px; background:#fcc; position:absolute; left:0 ;z-index:1; height:100px; } 
.right {width:100%; background:#ccc; position:absolute; left:0;} 
.content{margin-left:200px; background:#ffc; height:100px;} 

</style> 
</head> 
<body> 
<div class="wrapper"> 
    <div class="left">左侧固定宽度200px</div> 
    <div class="right"> 
        <div class="content01"> 
            右侧宽度自动适应 
        </div> 
    </div> 
</div> 
</body> 
</html> 

 

左侧固定 右侧自适应 布局

原文:http://www.cnblogs.com/yjhua/p/4612508.html

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