当前位置:网站首页>An article takes you quickly to learn flex layout
An article takes you quickly to learn flex layout
2022-07-25 03:36:00 【InfoQ】
know flex
Traditional layout and flex Layout
Traditional layout
- Compatibility is good.
- Complicated layout
- limitations , Can not be well adapted to the mobile terminal
flex Layout
- It is easy to operate , The layout is extremely simple
- Mobile terminal is widely used
flex Elastic layout
Layout principle
flex Parent common properties
flex-direction
row From left to right ( The default value is )
row-reverse From right to left
column From top to bottom
column-reverse From bottom to top justify-content
!! Before use, make sure that the spindle flex-start Start from scratch , If the spindle is x Axis , From left to right ( The default value is )
flex-end Start with the tail
center Align center , If the spindle is x Axis , Then the level is in the middle
space-around Each sub element divides the remaining space equally
space-between Trim on both sides , Divide the rest of the space equally flex-wrap
nowrap Don't wrap ( The default value is )
warp Line break
wrap-reverse Line break , From bottom to top align-items
flex-start Start from scratch , If the spindle is x Axis , From top to bottom
flex-end From bottom to top
center Align center , If the spindle is x Axis , Then it's vertically centered
stretch The tensile .!! Child elements cannot be given height align-content
flex-start Start from scratch , If the spindle is x Axis , From top to bottom
flex-end From bottom to top
center Align center , If the spindle is x Axis , Then it's vertically centered
space-around The child elements divide the remaining space equally
space-between Trim on both sides , Divide the rest of the space equally flex-flow
Such as :row wrap The spindle is x Axis and wrap Last
边栏推荐
- Network security - information hiding - use steganography to prevent sensitive data from being stolen
- Lombok detailed introduction
- C language_ Defining structures and using variables
- 292. Nim game
- A queue of two stacks
- Table of contents of force deduction questions
- Openlayers draw circles and ellipses
- Electronic bidding procurement mall system: optimize traditional procurement business and speed up enterprise digital upgrading
- Direct insert sort / Hill sort
- Using one stack to sort another stack
猜你喜欢

kettle_ Configure database connection_ report errors

Advantages and disadvantages of zero trust security

Secondary vocational network security skills competition P100 dcore (light CMS system) SQL injection

The relationship between private domain traffic and fission marketing. What is super app? Can our enterprise own it?

Task02 | EDA initial experience

301. Delete invalid brackets

Force deduction brush question 14. Longest common prefix

A code takes you to draw multi format sangjimei pictures such as interactive +pdf+png

Image processing based on hog feature

Openlayers draw circles and ellipses
随机推荐
Analysis of browser working principle
292. Nim game
C language introduction practice (9): completion judgment
Experience sharing of system architecture designers in preparing for the exam: how to prepare for the exam effectively
Consistent hash, virtual node, bloom filter
2022-07-19 study notes of group 5 self-cultivation class (every day)
Advantages and disadvantages of zero trust security
Idea configuration
C language writes a circular advertising lantern or changes it to a confession system
Pytorch deep learning practice lesson 8 importing data
[golang] golang realizes sending wechat service number template messages
Take a note: Oracle conditional statement
[Flink] transform operator filter
Algorithmic interview questions
A queue of two stacks
How is the virtual DOM different from the actual DOM?
Function method encapsulation -- mutual conversion of image types qpixmap, qimage and mat
Execution flow control of shell
Sword finger offer II 041. Average value of sliding window_____ Using queue / loop array implementation
原创 | ueditor1.4.3-asmx绕过waf