当前位置:网站首页>Flex layout
Flex layout
2022-07-25 22:05:00 【Doraemon has no pocket y】
Catalog
flex Parent container properties
rem Text adaptation
rem Company
1、rem Is a unit of font size relative to the root element

2、 utilize flexible.js Plug in modifying font size ( The font size changes with the size of the screen )

flex Definition
flex Translated into “ elastic ”, By setting display attribute , The property value is flex or inline-flex. Make it an elastic container , The immediate child elements in the container will become elastic elements . Elastic containers can directly control the position of child elements .
flex Parent container
flex Parent container properties
flex-direction: Set the spindle direction

justify-content: Used to set or retrieve elastic box elements in the spindle ( The horizontal axis ) Alignment in the direction .
Tips : Use align-content Attribute aligns the items on the cross axis ( vertical ).
flex-wrap: Set whether the child element should wrap .

align-items: Set the arrangement of elements on the side axis ( A single )

align-content: Set the arrangement of child elements on the side axis ( Multiple lines ).

Layout subproject
attribute
flex: Number of copies of sub items
Such as :flex:1;
align-self: Control the arrangement of subprojects on the side axis

order: Define the order in which children are arranged ( The order before and after )
Such as :order:1;
Case study
Case related code

Case renderings

边栏推荐
- Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week
- ZigBee development board (nxpzigbee Development)
- Open source RSS subscriber freshrss
- 6-18 vulnerability exploitation - backdoor connection
- Unity performance optimization direction
- Come again
- 测试工作不受重视,你换位思考了吗?
- C language: random generated number + selective sorting
- 2022 love analysis ― bank digitalization practice report
- [51nod1676 undirected graph isomorphism] undirected graph hash [easy to understand]
猜你喜欢

Guiding principles of information security construction

The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?

手机端微信发朋友圈功能测试点总结
![[go basics 02] the first procedure](/img/af/f32762a828f384bf6aa063ebf959aa.png)
[go basics 02] the first procedure

还不懂mock测试?一篇文章带你熟悉mock

信息安全建设原则指导

Children's programming electronic society graphical programming level examination scratch level 1 real problem analysis (judgment question) June 2022
![[leetcode ladder] linked list · 021 merge two ordered linked lists](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode ladder] linked list · 021 merge two ordered linked lists

Special class design

【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)
随机推荐
TS:typora代码片段缩进显示异常(已解决)-2022.7.24
In Oracle 19C version, logminer package continuous_ The outdated function of mine leads to CDC failure
The second short contact of gamecloud 1608
Solutions to the failure of win key in ikbc keyboard
At present, flynk CDC does not support mysql5.5. If you change the source code and release this restriction, there will be a lot of data problems?
Ansible+cronab batch deployment patrol
Create files, file permissions, ownership, and sticky bits
[leetcode ladder] linked list · 021 merge two ordered linked lists
6-18漏洞利用-后门连接
[fan Tan] in detail: lower control, upward management, upward drawing cake.
核电站在席卷欧洲的热浪中努力保持安全工作
C语言:随机生成数+冒泡排序
这次龙蜥展区玩的新花样,看看是谁的 DNA 动了?
[hand tear STL] BitSet (bitmap), bloom filter
The file cannot be saved (what if the folder is damaged and cannot be read)
How to solve the problem of using the download Plug-in for export?
【测开方法论】测开平台pk心得-抉择
Create EDA - why should I learn EDA
Why does redisv6.0 introduce multithreading?
还不懂mock测试?一篇文章带你熟悉mock