- 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
}
class="clearfix"
.clearfix:after{
content:"";
height:0;
line-height:0;
display:block;
visibility:hidden;
clear:both;
}
.clearfix {
zoom:1; // For compatibility with IE
}
本文标题:取消浮动
本文链接:https://www.haomeiwen.com/subject/gjjgpftx.html
网友评论