We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
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
第158天 你有用过弹性布局吗?说说你对它的理解
The text was updated successfully, but these errors were encountered:
按我的经验在样式规律上大致分下类吧,
用 flex 或 grid 能非常轻松的完成以上效果,而 css2 时代多半还需要更多元素嵌套才能完成了。
所谓弹性,即父级宽度变化子级宽度也会相应变化, 最基本的当然是百分比啦, 但当存在有定宽兄弟元素时,事情变得稍复杂了一点,便有了上述 2 3 的分类, 当间隙不为定值也要自动变化时,那便是第 4 分类了。
Sorry, something went wrong.
display: flex;
0
1
1 0 auto
No branches or pull requests
第158天 你有用过弹性布局吗?说说你对它的理解
The text was updated successfully, but these errors were encountered: