当前位置:网站首页>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
边栏推荐
- IPv6 experiment
- Kbp206-asemi rectifier bridge kbp206
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Qrcode: generate QR code from text
- Daily question 2 12
- [groovy] loop control (number injection function implements loop | times function | upto function | downto function | step function | closure can be written outside as the final parameter)
- Cette ADB MySQL prend - elle en charge SQL Server?
- Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
- MySQL winter vacation self-study 2022 11 (9)
- [daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
猜你喜欢
Asemi rectifier bridge 2w10 parameters, 2w10 specifications, 2w10 characteristics
2021 Li Hongyi machine learning (2): pytorch
Zabbix
Easy processing of ten-year futures and stock market data -- Application of tdengine in Tongxinyuan fund
腾讯云,实现图片上传
Asp+access campus network goods trading platform
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Apache Web page security optimization
Linux安装Redis
C file in keil cannot be compiled
随机推荐
Design and implementation of high availability website architecture
VM in-depth learning (XXV) -class file overview
[deep learning] deep learning reference materials
Share the newly released web application development framework based on blazor Technology
Design and practice of kubernetes cluster and application monitoring scheme
Apache Web page security optimization
In MySQL Association query, the foreign key is null. What if the data cannot be found?
Zero foundation uses paddlepaddle to build lenet-5 network
1. Five layer network model
2. Common request methods
Basic knowledge of tuples
Acwing第 58 场周赛【完结】
Sqoop installation
Port, domain name, protocol.
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018
2021 Li Hongyi machine learning (2): pytorch
Pytest (4) - test case execution sequence
Linux安装Redis
[groovy] string (string injection function | asBoolean | execute | minus)
Apache build web host