📜  网格中的空白区域使用“.”定义. - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:28.138000             🧑  作者: 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";
}