use
Description of the elastic box model
Commonly used properties flex-direction (specifies the arrangement of sub-elements in a flexible container) row default value. The elements will be displayed horizontally, as a row. row-reverse In reverse order. The column element will be displayed vertically, as a column. column-reverse Same as column, but in reverse order. flex-wrap (The property specifies whether the flex container is a single line or multiple lines, and the direction of the cross axis determines the direction in which new lines are stacked.) nowrap default value. Specifies that elements should not be split into rows or columns. wrap specifies that elements should be broken into rows or columns when necessary. wrap-reverse specifies that elements are wrapped in rows or columns when necessary, but in reverse order. The align-items property defines the alignment of flex items in the vertical axis direction of the current row of the flex container, that is, it specifies the top and bottom row styles. stretch The default value. Items are stretched to fit the container. center The item is located in the center of the container. flex-start items are positioned at the beginning of the container. flex-end items are positioned at the end of the container. baseline The item is located at the container's baseline. justify-content is used to set or retrieve the alignment of flexible box elements in the main axis (cross axis) direction. flex-start items are positioned at the beginning of the container. flex-end items are positioned at the end of the container. center The item is located in the center of the container. space-between Items are placed inside a container with space between rows. space-around Items are placed inside a container with space before, between, and after each line. Flexible child element properties 1.order attribute .flex-container .flex-item { order: <integer>; } <integer>: Use integer values to define the sorting order, with smaller values at the front. Can be negative value, default is 0. 2.align-self sets or retrieves the alignment of the elastic box element itself in the cross axis (vertical axis) direction. (Similar to align-items) The above is a detailed explanation of the CSS3 elastic expansion box. For more information about the CSS3 elastic expansion box, please pay attention to other related articles on 123WORDPRESS.COM! |
<<: A practical record of checking and processing duplicate MySQL records on site
>>: Docker installation and configuration steps for RabbitMQ
In the past few days, I have studied how to run s...
Table of contents Overview 0. JavaScript and Web ...
If we introduce the nesting rules of basic HTML w...
Unix/Linux Services systemd services Operation pr...
1. Why set maxPostSize? The tomcat container has ...
Detailed example of database operation object mod...
Enable remote access Enable remote access rights ...
Table of contents Drag and drop implementation Dr...
I recently bought the cheapest Tencent cloud serv...
This article shares the MySQL Workbench installat...
In the previous article, we learned about the net...
Without further ado Start recording docker pullin...
Table of contents 1. Database Operation 2. Data T...
Table of contents Effect display Code Link Key Co...
Table of contents 1. Learning Objectives 1.1. Mas...