CSS, Web, Web Development, Layout.
projects in the Flex container. .flex__container { display: flex; flex-direction: column; place-content: center; } .flex__container > * { align-self: center; } // 或 .flex__container { display: flex; flex-direction: column; place-content: center; place-items: center; } The effect is as follows: Many