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
One-click execution To install Python 3.8 in a vi...
View system help help contents mysql> help con...
1. Installation Install using yum ##Automatically...
Vue+iview menu and tab linkage I am currently dev...
Table of contents background How does element-ui&...
Today, I encountered a problem: the content in the...
This article mainly introduces the case of Vue en...
Preface In the process of developing a mini progr...
Cause of failure Today, when I was writing a caro...
Table of contents background: need: Effect 1. Ide...
Preface In LINUX, periodic tasks are usually hand...
This article shares the Java connection MySQL und...
The players we see on the web pages are nothing m...
Today someone talked to me about a website develo...
The code looks like this: .process{ border:1px so...