.clearfix::before,
.clearfix::after {
/* 解决外边距折叠 */
content: "";
display: table;
/* 解决高度塌陷 */
clear: both;
}
css: clearfix解决外边距折叠及高度塌陷问题
阅读 64
2022-02-03
.clearfix::before,
.clearfix::after {
/* 解决外边距折叠 */
content: "";
display: table;
/* 解决高度塌陷 */
clear: both;
}
相关推荐
精彩评论(0)