grid-auto-rows 属性用于指定隐式创建的行轨道大小。
如果定位到某行中的网格元素没有使用 grid-template-rows来指定大小,则会隐式创建 grid 轨道来保存它。这可能在显示定位到超出范围的行,或者由自动放置算法创建额外的行时发生。
grid-auto-rows: auto|max-content|min-content|length;
        | 值 | 描述 | 
| auto | 默认值。由行中的最大项目的尺寸决定行的尺寸。 | 
| max-content | 根据行中的最大项目设置每行的尺寸。 | 
| min-content | 根据行中的最大项目设置每行的尺寸。 | 
| length | 设置行的尺寸,通过使用合法的长度值。 | 
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>鱼C-零基础入门学习Web(Html5+Css3)</title>
  <style>
    .item1 {
      grid-area: 1 / 1 / 2 / 2;
    }
    .item2 {
      grid-area: 1 / 2 / 2 / 3;
    }
    .item3 {
      grid-area: 1 / 3 / 2 / 4;
    }
    .item4 {
      grid-area: 2 / 1 / 3 / 2;
    }
    .item5 {
      grid-area: 2 / 2 / 3 / 3;
    }
    .item6 {
      grid-area: 2 / 3 / 3 / 4;
    }
    .grid-container {
      display: grid;
      grid-auto-rows: 150px;
      grid-gap: 10px;
      background-color: lightblue;
      padding: 10px;
    }
    .grid-container>div {
      background-color: lightpink;
      text-align: center;
      padding: 20px 0;
      font-size: 30px;
    }
  </style>
</head>
<body>
  <div class="grid-container">
    <div class="item1">1</div>
    <div class="item2">2</div>
    <div class="item3">3</div>
    <div class="item4">4</div>
    <div class="item5">5</div>
    <div class="item6">6</div>
  </div>
</body>
</html>
        表格中的数字表示支持该属性的第一个浏览器版本号。
| Safari | Chrome | FireFox | IE | 
| 3.1 | 4.0 | 3.0 | 8.0 |