当前位置:网站首页>Display: the function and effect of align content, justify content and align items under flex
Display: the function and effect of align content, justify content and align items under flex
2022-07-25 03:38:00 【No Bug】
align-content attribute
effect : Set the same column of child elements in Y Axis alignment
| Property value | describe |
|---|---|
| flex-start | Arranged at the top of the current column |
| flex-end | Arranged at the bottom of the current column |
| center | Arrange in the middle of the current column |
| space-between | Equally spaced , No blank up and down |
| space-around | Equally spaced , The space left above and below is equal to half of the space |
justify-content attribute
effect : Set the same row of child elements in X Axis alignment
| Property value | describe |
|---|---|
| flex-start | Arranged on the leftmost side of the current row |
| flex-end | Arranged on the far right of the current row |
| center | Arrange in the middle of the current row |
| space-between | Equally spaced , Leave no space on either side |
| space-around | Equally spaced , The space left on both sides is equal to half of the space |
align-items attribute
effect : Set the same row of child elements in Y Axis alignment
| Property value | describe |
|---|---|
| flex-start | Arranged at the top of the current row |
| flex-end | Arranged at the bottom of the current row |
| center | Arrange in the middle of the current row |
| stretch | When the child element has no height set or is auto, Will fill the entire container |
| baseline | Align with the baseline of the first line of text of the child element |
边栏推荐
- Swagger key configuration items
- Pytorch deep learning practice lesson 8 importing data
- Interview question 05.06. integer conversion
- How is the virtual DOM different from the actual DOM?
- Algorithmic interview questions
- Wechat applet authorized login (including obtaining basic information and binding mobile number)
- C language function operation
- Deep learning Titanic (beginner) kaggle Liu er's homework Lesson 8
- A 20 yuan facial cleanser sold tens of thousands in seven days. How did they do it?
- A code takes you to draw multi format sangjimei pictures such as interactive +pdf+png
猜你喜欢

From input URL to page presentation

Day 10: BGP border gateway protocol

Imeta | ggclusternet microbial network analysis and visualization nanny level tutorial

Li Kou 279 complete square - dynamic programming

使用 “display: flex;justify-content: center;align-items: center; ” 解决流式栅格布局无法居中的问题

Memory leak due to improper handling of custom view

Unity: test rotation function
![[Flink] submit the jar package to the Flink cluster and run it](/img/9b/076949a4b9fe75ee248c400ee21474.png)
[Flink] submit the jar package to the Flink cluster and run it

应急响应全栈

C language_ Structure introduction
随机推荐
292. Nim game
Select sort / cardinality sort
01_ Education 4
01_ Education 2
Direct insert sort / Hill sort
Codewars notes
File permission management
The difference between abstract classes and interfaces
Performance test indicators using JMeter
Leetcode programming practice -- Tencent selected 50 questions (I)
Network construction and application in 2020 -- the answer of samba in Guosai
Network security - comprehensive penetration test -cve-2018-10933-libssh maintain access
Deep learning method of building a model from zero
B. Almost Ternary Matrix
Moveit2 - 10.urdf and SRDF
Time complexity and space complexity
Use of CCleaner
Sword finger offer II 041. Average value of sliding window_____ Using queue / loop array implementation
Force deduction brush question 14. Longest common prefix
基于ABP实现DDD--领域逻辑和应用逻辑