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

使用 flex 时全面屏 iPhone 的底部样式问题 #119

Open
lovelmh13 opened this issue Jul 23, 2021 · 0 comments
Open

使用 flex 时全面屏 iPhone 的底部样式问题 #119

lovelmh13 opened this issue Jul 23, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

在使用 flex 布局的时候,如果用在全面屏的 iPhone 的底部需要注意,因为底部有一个横线。不要使用 align-items:center 来居中,而要使用 align-items: flex-start;保证在使用 env(safe-area-inset-bottom) 属性的时候,间距被撑开

image

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