}*/
/float: left;或者是将#one中的改变
使用左侧浮动,或者是绝对定位使元素脱离文档流,使右侧的元素能够同一行显示
/
/#two{
width: auto;
height: 600px;
background: black;
margin-left: 200px;
}/
/第二种方法BFC /
#one{
width: 200px;
height: 300px;
background: #f99;
float: left;
}
/ float:left 元素会产生周围元素的环绕效果 ,overflow:会让元素宽度高度,自适应/
#two{
height: 200px;
background: red;
overflow: none
}
这是第一个
这是第二个