Skip to main content

clear:both 算触发 BFC 吗?.

不算,作用是清除浮动,为了使::after 的左边或者两边不允许出现浮动元素,没有触发 BFC,不在触发 BFC 条件中