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

修改.before的div后,下拉还是出现白色空隙 #29

Open
joe960913 opened this issue Oct 8, 2019 · 3 comments
Open

修改.before的div后,下拉还是出现白色空隙 #29

joe960913 opened this issue Oct 8, 2019 · 3 comments

Comments

@joe960913
Copy link

.before{
    position: absolute;
    top: -300px;
    height: 400px;
    width: 100%;
    background: ${style["theme-color"]};
    z-index: 1;
  }   
@sanyuan0704
Copy link
Owner

把父级元素的overflow:hidden去掉

@joe960913
Copy link
Author

解决了,感谢。请问这样做是因为之前让父级元素变成了BFC吗?

@sanyuan0704
Copy link
Owner

sanyuan0704 commented Oct 9, 2019 via email

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

2 participants