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

精读《用 css grid 重新思考布局》 #211

Closed
ascoders opened this issue Oct 10, 2019 · 2 comments
Closed

精读《用 css grid 重新思考布局》 #211

ascoders opened this issue Oct 10, 2019 · 2 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Oct 10, 2019

如果你还没有在项目中使用 css grid,建议和我一起看看本周的精读::用 css grid 重新思考布局,了解一下 css grid 的魔力。


精读《用 css grid 重新思考布局》

@ascoders ascoders changed the title 精读《用 css grid 改变布局思路》 精读《用 css grid 重新思考布局》 Oct 10, 2019
@wxxcarl
Copy link

wxxcarl commented Oct 17, 2019

请问,不是很规范的排列方式,用grid是不是难实现,比如高度的比例并不是刚好整数倍?布局并不是刚好类似table布局?

@ascoders
Copy link
Owner Author

@wxxcarl 个人感觉,有两种场景不适合 grid:

  1. 单维的布局场景。理由是大材小用,反而复杂度会提高。
  2. 可变化的布局。理由是布局方式一开始不确定,而 grid 要求区块已经提前规划好了。

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