📜  网格块中心 - CSS 代码示例

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

代码示例3
article {
  display: inline-grid;
  grid-template-rows: 100px 100px 100px;
  grid-template-columns: 100px 100px 100px;
  grid-gap: 3px;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  font-size: 3em;
}