📜  div 内的 CSS 网格中心元素 - CSS 代码示例

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

代码示例2
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;
}