CSS, Web, Web Development, Layout.
Flex project horizontally and vertically centered in the Flex container. For example: .flex__container { display: flex; // 或 inline-flex } .flex__item { margin: auto; } The effect is as follows: You can experience the whole process with the following example. Try selecting margin values in