📜  如何在网格模板区域中使用空格 css 代码示例

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

代码示例1
.container {
  display: grid;

  grid-template-columns: 2fr 2fr 1fr 2fr;
  grid-template-rows: 100px 200px 100px;

  grid-template-areas:
    "head head . side"
    "main main . side"
    "footer footer footer footer";
}