📜  内联块居中对齐 - CSS 代码示例

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

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

.child {
  display: inline-block;
}