CSS, Web, Web Development, Layout.
center; } // 多行 .flex__container { display: flex; flex-direction: column; align-items: center; justify-content: center; } Set margin: auto If there is only one Flex project in the Flex container, you can also explicitly set the value of margin to auto in the Flex project, which can also make the