<div
style="float:left;">float:left</div>
<div
style="clear:both;margin-top:20px;margin-bottom:20px;background:
red;margin-right:
20px;">clear:both</div>
2222222222222222222
前面那个DIV浮动的div的margin是起作用的;
后面那个DIVclear:both后,只有margin-top不起作用,其他的左右下都起作用;
![](http://simg.sinajs.cn/blog7style/images/special/1265.gif)
![](http://sina.allyes.com/main/adfclick?db=sina&bid=204720,470173,475454&cid=0,0,0&sid=474001&advid=358&camid=37389&show=ignore&url=http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif?t=5)