浮动清除浮动造成的影响实例页面
代码:
HTML代码:
<div style="float:left; background:#f0f3f9; padding:20px;"> <img style="float:left;" src="//image.zhangxinxu.com/image/study/s/s128/mm1.jpg" /> </div>
<div style="float:left; background:#f0f3f9; padding:20px;"> <img style="float:left;" src="//image.zhangxinxu.com/image/study/s/s128/mm1.jpg" /> </div>