📜  如何在一行中对齐 div - CSS 代码示例

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

代码示例1
div {
    display: flex;
      align-items: center; /* aligns all the items vertically centered */
      justify-content: center; /* aligns all the items horizontally centered */
}