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

边栏推荐
- [51nod1676 undirected graph isomorphism] undirected graph hash [easy to understand]
- Come again
- Redis基础2(笔记)
- C language left value and right value description [easy to understand]
- [MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving
- Tesseract OCR初探
- Share | intelligent fire emergency management platform solution (PDF attached)
- Lichuang EDA -- creation of devices 01 resistance (II)
- Detailed summary of C language game dual cache to solve the flash screen problem [easy to understand]
- 若依如何解决导出使用下载插件出现异常?
猜你喜欢
![[dinner talk] those things that seem to be for the sake of the company but are actually incomprehensible (2: soft quality](/img/11/42c4674d23ee93850fb3d2de0d0932.png)
[dinner talk] those things that seem to be for the sake of the company but are actually incomprehensible (2: soft quality "eye edge" during interview)

TFrecord写入与读取

【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)

聚名十年,说出你的故事,百万豪礼等你拿

『SignalR』. Net using signalr for real-time communication

3. Editors (vim)
![[go basics 02] the first procedure](/img/af/f32762a828f384bf6aa063ebf959aa.png)
[go basics 02] the first procedure

MySQL --- 子查询 - 列子查询(多行子查询)

如何将一个域名解析到多个IP地址?
![[hand tear STL] BitSet (bitmap), bloom filter](/img/bc/a6e3c2ccce478460a2742852eee9cf.png)
[hand tear STL] BitSet (bitmap), bloom filter
随机推荐
jenkins+SVN配置
Playwright tutorial (I) suitable for Xiaobai
核电站在席卷欧洲的热浪中努力保持安全工作
[leetcode ladder] linked list · 876 find the middle node of the linked list
Redis usage details
mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
[go basics 02] the first procedure
【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
Animation curves are used every day. Can you make one by yourself? After reading this article, you will!
『SignalR』.NET使用 SignalR 进行实时通信初体验
自动化测试岗花20K招人,到最后居然没一个合适的,招两个应届生都比他们强吧
Preliminary study on Tesseract OCR
TFrecord写入与读取
信息安全建设原则指导
After three years of software testing at Tencent, I was ruthlessly dismissed in July, trying to wake up my brother who was paddling
[51nod1676 undirected graph isomorphism] undirected graph hash [easy to understand]
QML module not found
Unity performance optimization direction
GPON introduction and Huawei OLT gateway registration and configuration process
[assembly language 01] basic knowledge