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] 第505天 你有使用过grid布局吗?说说你对它的理解 #2853

Open
haizhilin2013 opened this issue Sep 1, 2020 · 1 comment
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第505天 你有使用过grid布局吗?说说你对它的理解

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Sep 1, 2020
@Alan-YJ
Copy link

Alan-YJ commented Sep 2, 2020

grid跟flex都是css3出来的,我使用的时候一般都是布局的时候使用grid,在某些元素要居中排列或者分布排列的时候使用flex,
使用grid的时候用的比较多的属性是
1.display:grid;
2.grid-template-columns:1fr 1fr 1fr 1fr; 值一般使用fr、百分比、像素值
3.grid-column-gap:10px;
除了column还有row属性,其他的属性我用的不太多就不写了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

2 participants