当前位置:网站首页>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

边栏推荐
猜你喜欢

All you want to know about interface testing is here

TS:typora代码片段缩进显示异常(已解决)-2022.7.24

核电站在席卷欧洲的热浪中努力保持安全工作

Nuclear power plants strive to maintain safety in the heat wave sweeping Europe

字节跳动技术面都过了,结果还是被刷了,问HR原因竟是。。。

QML module not found

『Skywalking』. Net core fast access distributed link tracking platform

Open source RSS subscriber freshrss

Three ways to allocate disk space

这次龙蜥展区玩的新花样,看看是谁的 DNA 动了?
随机推荐
In Oracle 19C version, logminer package continuous_ The outdated function of mine leads to CDC failure
Basic knowledge in the project
6-18漏洞利用-后门连接
The reisson distributed lock renewal failed due to network reasons, resulting in the automatic release of the lock when the business is still executing but the lock is not renewed.
Why does redisv6.0 introduce multithreading?
突破性思维在测试工作中的应用
Golang: MVC models
ZigBee development board (nxpzigbee Development)
Come again
golang : MVC之models
6-18 vulnerability exploitation - backdoor connection
数据库进阶·如何针对所有用户数据中没有的数据去加入随机的数据-蜻蜓Q系统用户没有头像如何加入头像数据-优雅草科技kir
【测开方法论】测开平台pk心得-抉择
How to quickly build a picture server [easy to understand]
Tesseract OCR初探
自动化测试岗花20K招人,到最后居然没一个合适的,招两个应届生都比他们强吧
GPON introduction and Huawei OLT gateway registration and configuration process
dovecot 设置邮箱quota
Having met a tester with three years' experience in Tencent, I saw the real test ceiling
6-17 vulnerability exploitation - deserialization remote command execution vulnerability