当前位置:网站首页>Responsive flow layout
Responsive flow layout
2022-06-30 05:15:00 【-iLu】
The telescopic box is new - The roulette
1.display:flex Open the flow layout
2.flex-grow Expansion ratio Distribute by number of copies , The default is 0
3.flex-shrink Shrinkage ratio The default is 1
4.flex-basis Expansion reference value Expandable and contractible , By number of copies and pixels The default is 1
5.flex-flow arrangement
(1)flex-diection Location
row Left to right layout row-reverse Right to left layout
column Top to bottom layout column-reverse Bottom to top layout
(2)flex-wrap Do you want to change lines
nowwrap Don't wrap wrap Overflow wrap wrap-reverse Reverse wrap
6.order Set the order
Company : Numbers , The default is 1, The bigger the number, the higher it goes
7.align-content Alignment of stacked telescopic rows
flex-start Top alignment flex-end Bottom alignment center In the middle
space-around Average distribution stretch Full of parent classes
8.align-items On side shaft ( The vertical axis ) Alignment in the direction
flex-start Top alignment flex-end Bottom alignment center In the middle
baseline The baseline stretch Full of parent classes
9.align-self On side shaft ( The vertical axis ) Alignment in the direction
flex-start Top alignment flex-end Bottom alignment center In the middle
baseline The baseline stretch Full of parent classes auto The adaptive
10.justify-content Set or retrieve the elastic box element on the spindle ( The horizontal axis ) Alignment in the direction
flex-start Top alignment flex-end Bottom alignment center In the middle
space-around Average distribution space-between full-justified
Note the difference between the two horizontal and vertical axes :
7.8 The horizontal axis and vertical axis refer to the parent class , Support horizontal and vertical center of newline
9.10 Horizontal axis and vertical axis refer to parent and brother , Horizontal and vertical center of newline is not supported
The default value of flow layout
flex:1; It means flex:1 1 0%; [ Extension 1 Receive as 1 The reference value is 0]
flex:none; It means flex:0 0 auto; [ Neither stretch nor shrink Adapt to the parent class according to the original width and height ]
flex:auto; It means flex:1 1 auto; [ Extension 1 Receive as 1 The benchmark value adapts to the parent class according to the original width and height ]
flex:10%; It means flex:1 1 10%; [ Extension 1 Receive as 1 At baseline : The excess area is calculated as 10% Retract ; Smaller than the area of the parent class, press 10% stretch ]
边栏推荐
- Unity screenshot method
- Intellj idea jars projects containing external lib to other project reference methods - jars
- Unity supports the platform # define instruction of script
- mmcv常用API介绍
- RedisTemplate 常用方法汇总
- LXC 和 LXD 容器总结
- The difference between SVG and canvas
- Revit二次開發---未打開項目使用面板功能
- How to install win7 on AMD Ruilong CPU A320 series motherboard
- 【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
猜你喜欢

Parkour demo

Force buckle 349 Intersection of two arrays
![[notes] unity Scrollview button page turning](/img/c7/47c4056871d0212ac61524539f0d0e.jpg)
[notes] unity Scrollview button page turning

One command to run rancher

Some problems encountered in unity steamvr

Unity screenshot method

Basic operations of Oracle data

【VCS+Verdi聯合仿真】~ 以計數器為例

虚析构和纯虚析构

Procedural animation -- inverse kinematics of tentacles
随机推荐
Go Land no tests were Run: FMT cannot be used. Printf () & lt; BUG & gt;
力扣(LeetCode)180. 连续出现的数字(2022.06.29)
Unity Catmull ROM curve
Unity- the camera follows the player
GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
[typescript] defines the return value type of promise
Unity Logitech steering wheel access
Modbus protocol register
Unity screenshot method
Unity notes_ SQL Function
Nestjs introduction and environment construction
Force buckle 209 Minimum length subarray
2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking
[note] usage model tree of the unity resource tree structure virtualizingtreeview
[vcs+verdi joint simulation] ~ take the counter as an example
Unity shortcut key
Unit asynchronous jump progress
Revit二次开发---未打开项目使用面板功能
Force buckle 27 Removing Elements
Unity call Exe program