码迷,mamicode.com
首页 > 其他好文 > 详细

两栏布局

时间:2014-09-18 22:00:34      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:style   ar   div   c   line   ef   r   as   har   

两栏布局,左边宽度固定,右边自适应

<div id="left">left</div>
<div id="right">right</div>

<style>
#left{
width: 200px;
line-height:50px;
background:green;
float:left;
text-align:center;

}
#right{
margin-left:200px;
line-height:50px;
background:red;
text-align:center;
}
</style>

两栏布局

标签:style   ar   div   c   line   ef   r   as   har   

原文地址:http://www.cnblogs.com/qinxuemei/p/3968976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!