<div style="overflow:hidden;">
<div style="float:left;">left</div>
<div style="float:right;">right</div> </div>
只要给父元素添加overflow:hidden即可
<div style="overflow:hidden;">
<div style="float:left;">left</div>
<div style="float:right;">right</div> </div>
只要给父元素添加overflow:hidden即可