在公共样式中引入
.clearFix::before,
.clearFix::after{
content: “”;
display: block;
visibility: hidden;
height: 0;
line-height: 0;
clear: both;
}
在编写HTML需清除浮动的地方,加入该类样式即可
清除浮动的流行方法
猜你喜欢
转载自blog.csdn.net/qq_34708564/article/details/89513091
今日推荐
周排行