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

flex #36

Open
Jmingzi opened this issue Aug 15, 2018 · 0 comments
Open

flex #36

Jmingzi opened this issue Aug 15, 2018 · 0 comments

Comments

@Jmingzi
Copy link
Owner

Jmingzi commented Aug 15, 2018

本文介绍flex基础属性点的含义和归类

flex 通用样式类库 https://github.com/lzxb/flex.css/blob/master/docs/zh-ch.md

flex的作用方式分为容器和元素,x轴和y轴,将属性归纳起来便于理解

容器类:

flex-direction  // 决定子元素的排列方向,x轴 or y轴
flex-wrap  // 决定子元素的是否换行
justify-content  // 决定子元素在x轴中空余space的分配
align-content  // 决定子元素在y轴中空余space的分配
align-items // 子元素在y轴上的排列方式

元素类:

order  // 排序
flex-grow // 对空间占用的大小
flex-shrink 
align-self  // 功能与align-items一致,会覆盖align-items

参考 https://css-tricks.com/snippets/css/a-guide-to-flexbox/

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

1 participant