We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
BFC 是 Block Formatting Context 的简称,也就是块级格式化上下文。
都知道文档流是自上而下,从左到右排版的,但是很多情况下我们不得不让某些“盒子”脱离文档流来实现我们的需求,由此我们需要脱离文档流,脱离文档流的方式有浮动以及定位。但是脱离文档流后就意味着他们在正常的文档流中已经没有“容身之处”了,这就是为什么给某个元素增加float(不为none)时会浮现在后一个元素的上方造成遮挡,为了解决这个问题特此就需要利用我们的 BFC 进行格式化上下文。
float
具有 BFC 特性的元素可以看做是一个隔离的容器,不管它的内部的元素翻汤倒海什么的都不会影响到外界的元素。
由此我们可以利用 BFC 来解决
以下方式可以帮助我们形成 BFC
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: