📜  如何垂直分布css代码示例中的项目

📅  最后修改于: 2022-03-11 14:47:53.495000             🧑  作者: Mango

代码示例1
/* 100vh = 100% Viewport Height */
body {
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
}
/* add */ align-items: center; /*to also center horizontally.*/