bfc作用

作用

1、清浮动

2、不被浮动元素覆盖

3、阻止父子margin传递

触发条件:

1、float不为none

2、position不为static或relative

3、display:inline-block、table-cell、tabel-caption

原文地址:https://www.cnblogs.com/gaidalou/p/7358544.html