.cleatfix::after {
content: "";
display: table;
clear: both
}
.cleatfix::before {
content: "";
display: table;
clear: both
}
将上面代码用到目标元素上的父元素即可解决边距重叠问题。
.cleatfix::after {
content: "";
display: table;
clear: both
}
.cleatfix::before {
content: "";
display: table;
clear: both
}
将上面代码用到目标元素上的父元素即可解决边距重叠问题。