常用的清除浮动方法
2020-07-03 本文已影响0人
菜鸟的平凡之路
增加div
使用after伪类
::after {
content: '',
display: block,
height: 0,
visibility: hidden,
clear: both
}
::after {
content: '',
display: block,
height: 0,
visibility: hidden,
clear: both
}