Files
ClassContent/历届学生/韩想/每日课程/202-07-31/flex.md
2024-09-27 02:06:13 +08:00

24 lines
440 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# flex学习
## 分类
display: flex; 加在父元素上
- 1用在父元素身6个
justify-content: 决定元素在x轴的对齐方式
align-items决定元素在y轴的对齐方式
flex-wrap: 决定元素是否换行
flex-direction决定元素的排列方向
- 2用在子元素上6个
order: 数值越小,元素越靠前
flex-grow定义元素的放大比例
flex-shrink定义元素的缩小比例