当前位置:网站首页>Flex flexible layout
Flex flexible layout
2022-07-05 03:28:00 【Lao Zhang typed the code online】
What is? flex
felxbox Layout is used for elastic layout , Can be adapted rem Deal with the problem of size adaptation
advantage :
Any container can be specified as flex Layout , More flexible
More in line with the characteristics of responsive layout
shortcoming :
Browser compatibility is not high , Compatible only ie9 Above browser
0
flex-direction
effect : The arrangement of child elements in the parent element box
attribute :row Is the default value , From left to right row-reverse And row contrary , From right to left column Display child elements vertically , Default from top down column-reverse And column contrary , From bottom to top
flex-warp
effect : Whether the child element is wrapped in the parent element box
attribute :nowrap The default value is , No line breaks or column breaks warp Line or column breaks wrap-reverse Line break or column break , But in the opposite direction
flex-flow
effect : Combine the characteristics of the above two attributes
Example :flex-flow:row wrap(x Axis arrangement and line feed )
justify–content
effect : Evenly distribute the space occupied by child elements within the parent element
attribute :flex-start The default value is , From left to right , The first child element is next to the beginning of the line flex-end Contrary to the above center centered space-between Evenly distributed on this line , There is no room on both sides space-around Evenly distributed on this line , There is half of the space between the two sub elements
align-items
effect : Set each flex Alignment of elements on the cross axis ( If the spindle is x Then the cross axis is y, If the spindle is y The opposite is true )
attribute :flex-start At the beginning of the container flex-end At the end of the container center centered
align-content
effect : Operate multi line elements as a whole
attribute :flex-start At the beginning of the container flex-end At the end of the container center Align center space-between Leave space between , Close on both sides space-around There is also a blank on both ends
边栏推荐
- Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- College Students' innovation project management system
- Elk log analysis system
- 问下,这个ADB mysql支持sqlserver吗?
- [micro service SCG] 33 usages of filters
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Delphi free memory
- [groovy] string (string injection function | asBoolean | execute | minus)
- Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
猜你喜欢

2021 Li Hongyi machine learning (2): pytorch
![Moco V2 literature research [self supervised learning]](/img/bd/79b7b203ea064c65d143116c9f4dd0.jpg)
Moco V2 literature research [self supervised learning]

Azkaban实战

51 independent key basic experiment

Pat class a 1160 forever (class B 1104 forever)

Basic knowledge of tuples

Bumblebee: build, deliver, and run ebpf programs smoothly like silk

el-select,el-option下拉选择框

Sqoop installation

SQL injection exercise -- sqli Labs
随机推荐
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
Pat grade a 1119 pre- and post order traversals (30 points)
[system security] ten thousand words summary system virtualization container bottom layer principle experiment
Devtools的簡單使用
Vb+access hotel service management system
Huawei MPLS experiment
有个疑问 flink sql cdc 的话可以设置并行度么, 并行度大于1会有顺序问题吧?
[200 opencv routines] 99 Modified alpha mean filter
LeetCode 237. Delete nodes in the linked list
Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers
VM in-depth learning (XXV) -class file overview
el-select,el-option下拉选择框
打破信息茧房-我主动获取信息的方法 -#3
NPM introduction link symbolic link
DECLARE_ WAIT_ QUEUE_ HEAD、wake_ up_ Interruptible macro analysis
为什么腾讯阿里等互联网大厂诞生的好产品越来越少?
Utilisation simple de devtools
Leetcode92. reverse linked list II
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
IPv6 experiment