当前位置:网站首页>Flex flexible layout
Flex flexible layout
2022-07-19 05:16:00 【web Rookie】
Flex Flexible layout notes
flex-direction: Text arrangement direction
- row: The default value is , Horizontal arrangement , Sort from the left
- row-reverse: Sort horizontally , Sort from the right
- column: Vertical sort , Sort it from top to bottom
- column-reverse: Vertical sort , Sort from bottom to top
flex-wrap: Whether the text is sorted by wrapping
- nowrap: Default , Don't wrap
- wrap: Line break , Arrange multiple rows
- wrap-reverse: Line break , The first line is at the bottom
align-content: Use alignment when arranging multiple rows , If there is only a single line, this attribute does not take effect
- stretch: The default value is , The axis occupies the entire cross axis .
- center: In the middle , Align with the midpoint of the cross axis
- flex-start : Start sorting on the left , Align with the starting point of the intersection
- flex-end: Start sorting on the right , Align with the end of the intersection
- space-between: Align with both ends of the cross axis , The average distribution of spacing between axes
- space-around: The spacing between each axis is equal . therefore , The spacing between the axes is twice as large as the spacing between the axes and the borders .
justify-content: Align according to the spindle
- flex-start : The default value is , Start sorting on the left to align ,
- center: In the middle
- flex-end: Start sorting on the right to align ,
- space-between: full-justified , The spacing between elements is equal
- space-around: The spacing on both sides of each element is equal , So the spacing between elements is twice as large as the spacing with the border
align-items : Align on the cross axis
stretch: The default value is , If the element has no height or is set to auto, Will fill the entire container
flex-start: Start sorting on the left , Align the starting points of the intersecting axes
flex-end: Start sorting on the right , The ends of the intersecting axes are aligned
center: In the middle , Align the midpoint of the intersecting axis
baseline: Baseline alignment of the first line of text for the project
flex attribute
flex-grow, flex-shrink and flex-basis Abbreviation
flex:1
边栏推荐
- 【Es6】详细解说Set ,Array的常用对象及其他方法(完整版)
- (elaborate) ES6 remaining parameters, ES6 built-in objects, template string content (detailed example Dictionary) and practical cases of flexible use of the project
- [ES6] use multiple functions such as adding data, filtering and transmitting to the page to realize cases
- 2020-11-10
- 学习C语言第7天
- 【C语言—零基础第九课】函数中的爱恨情仇
- 实习项目1-个性化主页配置
- Use echars to realize water drop, ring, segmentation, stacking, organization chart, map outline and other charts
- Case summary of rotation chart moving speed (constant speed, slow motion)
- MySQL optimization
猜你喜欢
随机推荐
【Es6】利用添加数据,筛选并传输至页面等多项功能实现案例
无重复字符的最长字串
Uniapp uses uview to realize folding panel
【C语言—零基础_学习_复习_第四课】数据类型及其运算
Wechat applet obtains the week, morning, noon and evening of month, year and day
Cesium 绑定鼠标事件和移除鼠标事件
Internship project 1 - personalized homepage configuration
STL container - basic operation of vector
这么6的刷题网站你不会没听说过吧?你已经out 了?
多功能(实现)封装函数
【C语言_学习_考试_复习第三课】ASCII码与C语言概述
学习C语言的第6天
学习C语言的第五天
【LeetCode——编程能力入门第二天】运算符(位1的个数/整数的各位积和之差)
PAT乙级1017: A除以B
uni-app 条件编译#ifdef #endif 兼容多个终端
父组件加scoped有时也会影响子组件
轮播图节流阀原理及本地存储归总
学习C语言第7天
【Es6】详细解说Set ,Array的常用对象及其他方法(完整版)









