When using Flex layout, you will find that when arranged horizontally, the height of all child items becomes the same. This is because Flex layout will default to:
It is very inconvenient to set the background color in this way. Then you can set align-items to flex-start or other values of the align-items attribute on the parent item, and the child item will maintain its own height. .fat{ display: flex; align-items:flex-start; } The effect is as follows: This is the end of this article about how to use Flex layout to keep child items at their own height. For more information about how to use Flex layout to keep child items at their own height, please search previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: Use viewport in meta tag to define screen css
>>: Specific use of Mysql prepare preprocessing
1. This is a bit complicated to understand, I hop...
Table of contents 1. Shared CommonModule 2. Share...
Build the project Execute the command line in the...
Recently, when I was working on a conference heal...
This article shares the specific code of JavaScri...
In real life, a lock is a tool we use when we wan...
This article mainly introduces the analysis of th...
Application software generally has such business ...
<br />Web Design and Production Test Part I ...
Copy code The code is as follows: <span style=...
Today I will share with you a breathing carousel ...
Table of contents 1. Three modes of binlog 1.Stat...
Nowadays, whether you are working on software or w...
This article example shares the specific code of ...
In previous blog posts, I have been focusing on so...