BFC(Block formatting context)直译为"块级格式化上下文"。它是一个独立的渲染区域,只有Block-level box参与,
哪些情况会产生BFC:
根元素
float属性不为none
position为absolute或fixed
display为inline-block, table-cell, table-caption, flex, inline-flex
overflow不为visible
作者:轩辕乖
链接:https://www.nowcoder.com/exam/test/82359025/submission?examPageSource=Intelligent&pid=58166367&testCallback=https%3A%2F%2Fwww.nowcoder.com%2Fexam%2Fintelligent%3FquestionJobId%3D10%26tagId%3D21002&testclass=%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91
来源:牛客网
哪些情况会产生BFC:
根元素
float属性不为none
position为absolute或fixed
display为inline-block, table-cell, table-caption, flex, inline-flex
overflow不为visible
作者:轩辕乖
链接:https://www.nowcoder.com/exam/test/82359025/submission?examPageSource=Intelligent&pid=58166367&testCallback=https%3A%2F%2Fwww.nowcoder.com%2Fexam%2Fintelligent%3FquestionJobId%3D10%26tagId%3D21002&testclass=%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91
来源:牛客网
全部评论
相关推荐
苦涩的沙:实习过的组比较熟悉,不然就是开盲盒,阿里组和组之间差距很大
点赞 评论 收藏
分享