📜  flex align items - 任何代码示例

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

代码示例3
.box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box div {
  width: 100px;
  height: 100px;
}