核心提示:CSS代码:.box{padding:10px; background:gray;}.fix{*zoom:1;}.fix:after{display:block; content:clear; hei...
CSS代码:
.box{padding:10px; background:gray;} .fix{*zoom:1;} .fix:after{display:block; content:"clear"; height:0; clear:both; overflow:hidden; visibility:hidden;} .l{float:left;}
HTML代码:
<p class="box fix"> <img class="l" src=/uploadfile/2017/0829/20170829043231689.jpg" /> </p>