当前位置:网站首页>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
边栏推荐
- 使用js中的(offset,page)实现登录效果
- The principle and local storage of the throttle valve of the rotation chart are summarized
- 使用js实现安居客二级菜单及(注意事项和问题点演示)完整版
- Leetcode53. maximum subarray and
- computed和watch的区别
- Shell脚本配置root免密登录到其他主机
- STL容器——vector的基本操作
- Two JS methods of rolling wheel loading and modal box dragging
- 微信小程序获取年月日周及早上、中午、晚上
- 路由器loopback口实验
猜你喜欢
随机推荐
单臂路由配置
【C语言—零基础第六课】输入输出语句格式与复合语句
Email (including attachments, Netease, QQ)
【Es6】forEach,for... in ,for... Of column, which allows you to quickly distinguish the usage and differences of various for statements through project cases (full version). There are detailed notes ins
es6新增-数组/对象的解构赋值
Cesium bind mouse events and remove mouse events
路由器loopback口实验
Es6 真实案例解构(多维数组对象)全新案例:
【C语言—零基础第十一课】旋转大转盘之指针
[2022 10th Teddy Cup Challenge] Title A: complete version of pest identification (general idea. Detailed process and code and results CSV in compressed package)
uniapp 使用uview实现折叠面板
【C语言_学习_考试_复习第三课】ASCII码与C语言概述
使用js中的(offset,page)实现登录效果
轮播图的两种方法及自动轮播
BUUCTF 杂项——二维码
Applet editor rich text editing and rich text parsing
多功能(实现)封装函数
【Es6】快速实现用户信息打印至页面中
这么6的刷题网站你不会没听说过吧?你已经out 了?
es6新增-对象部分








