bfc作用

作用

1、清浮动

2、不被浮动元素覆盖

3、阻止父子margin传递

触发条件:

1、float不为none

2、position不为static或relative

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

posted @ 2017-08-14 16:30  盖大楼  阅读(158)  评论(0编辑  收藏  举报