西 10:22:33
<div id="he">
<div id="aaa">aaa</div>
<div id="bbb">bbb</div>
</div>
#he{
width:400px;
border:solid thin green;
}
#aaa{
width:200px;
float:left;
}
#bbb{
width:200px;
float:right;
}
西 10:22:46
为什么结果成了 这样?
西 10:23:08
字都不在div里了
水ヾ10:25:32
#he 也加个 float:left 试下看
<div id="he">
<div id="aaa">aaa</div>
<div id="bbb">bbb</div>
</div>
#he{
width:400px;
border:solid thin green;
}
#aaa{
width:200px;
float:left;
}
#bbb{
width:200px;
float:right;
}
西 10:22:46
为什么结果成了 这样?
西 10:23:08
字都不在div里了
水ヾ10:25:32
#he 也加个 float:left 试下看