取消浮动
2018-07-17 本文已影响7人
奋斗的小小小兔子
- the parent element add
class="clearfix"
.clearfix:after{
content:"";
height:0;
line-height:0;
display:block;
visibility:hidden;
clear:both;
}
.clearfix {
zoom:1; // For compatibility with IE
}