Skip to content
New issue

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

15-前端面试02-CSS盒模型及BFC的错误 #215

Open
ToLengSon opened this issue Dec 27, 2021 · 0 comments
Open

15-前端面试02-CSS盒模型及BFC的错误 #215

ToLengSon opened this issue Dec 27, 2021 · 0 comments

Comments

@ToLengSon
Copy link

首先很感谢作者的辛苦编写文档,其次我在学习中好像发现了个问题;
文档中:上面的div结构中,如果父元素和子元素发生margin重叠,我们可以给子元素创建一个 BFC,就解决了:
我感觉父子元素margin重叠时,给子元素创建BFC是不行的吧,overflow: hidden应该加在父元素中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant