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] 第739天 flex:1表示什么? #3857

Open
haizhilin2013 opened this issue Apr 23, 2021 · 3 comments
Open

[css] 第739天 flex:1表示什么? #3857

haizhilin2013 opened this issue Apr 23, 2021 · 3 comments
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第739天 flex:1表示什么?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Apr 23, 2021
@an2544883599
Copy link

flex:1表示在盒子内占满剩余空间

@namefhf
Copy link

namefhf commented Apr 24, 2021

flex grow 1

@carrie-xin
Copy link

flex有三个值,分别为0, 1 , auto; 是 flex-grow,flex-shrink ,flex-basis三个值合并的简写

  flex-grow flex-shrink flex-basis
flex: 1 1 1 0%
flex: 0 0 1 0%
flex: auto 1 1 auto

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

4 participants