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
以下方案均基于如下布局和基础样式:
https://febook.hzfe.org/awesome-interview/book4/css-vertical-horizontal-center
The text was updated successfully, but these errors were encountered:
建议使用类选择器
Sorry, something went wrong.
flex还有个简单的 #parent { display: flex; width: 100px; height: 100px; background: red; }
#children { margin: auto; width: 50px; height: 20px; background: blue; }
Grid
#parent { display: grid; place-items: center; }
LLawlight
No branches or pull requests
水平垂直居中方案 | HZFE - 剑指前端 Offer
以下方案均基于如下布局和基础样式:
https://febook.hzfe.org/awesome-interview/book4/css-vertical-horizontal-center
The text was updated successfully, but these errors were encountered: