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

边栏推荐
- The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?
- The testing work is not valued. Have you changed your position?
- dovecot 设置邮箱quota
- 卸载npm和安装npm_使用`npm uninstall`卸载npm软件包「建议收藏」
- YUV420 yuv420sp image format "recommended collection"
- [hand tear STL] BitSet (bitmap), bloom filter
- Open source RSS subscriber freshrss
- 2年功能测试,却感觉自己什么都不会,2022我该何去何从?
- C language: random generated number + selective sorting
- Preliminary study on Tesseract OCR
猜你喜欢

Playwright tutorial (I) suitable for Xiaobai

Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week

什么是分区分桶?

Summary of function test points of wechat sending circle of friends on mobile terminal

Having met a tester with three years' experience in Tencent, I saw the real test ceiling
![[go basics 02] the first procedure](/img/af/f32762a828f384bf6aa063ebf959aa.png)
[go basics 02] the first procedure

GPON introduction and Huawei OLT gateway registration and configuration process

Redis foundation 2 (notes)

Redis基础2(笔记)

TS:typora代码片段缩进显示异常(已解决)-2022.7.24
随机推荐
如何快速搭建图片服务器[通俗易懂]
[leetcode ladder] linked list · 876 find the middle node of the linked list
C语言:随机生成数+选择排序
动画曲线天天用,你能自己整一个吗?看完这篇你就会了!
Excuse me, how to deal with repeated consumption of MySQL data
Guys, how can Flink SQL submit tasks in per job mode?
[assembly language 01] basic knowledge
c sqlite ... ...
How to quickly build a picture server [easy to understand]
In Oracle 19C version, logminer package continuous_ The outdated function of mine leads to CDC failure
The testing work is not valued. Have you changed your position?
【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)
kubernetes之VictoriaMetrics单节点
Redis memory elimination mechanism?
mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
【饭谈】测试平台为什么有组件化?模块化?很多看不到的地方设计的很好是种浪费么?
Why does redisv6.0 introduce multithreading?
Golang: MVC models
Dovecot set mailbox quota
开户就可以购买收益在百分之六以上的理财产品了吗