---
id: 5a9036e138fddaf9a66b5d33
title: Add Rows with grid-template-rows
challengeType: 0
videoUrl: ''
localeTitle: 使用grid-template-rows添加行
---
## Description
您在上一次挑战中创建的网格将自动设置行数。要手动调整行,请使用grid-template-rows
属性,方法grid-template-columns
在先前挑战中使用grid-template-columns
方式相同。
## Instructions
## Tests
```yml
tests:
- text: container
类应该有一个grid-template-rows
属性,其中两个单元为50px
。
testString: 'assert(code.match(/.container\s*?{[\s\S]*grid-template-rows\s*?:\s*?50px\s*?50px\s*?;[\s\S]*}/gi), "container
class should have a grid-template-rows
property with two units of 50px
.");'
```
## Challenge Seed
## Solution
```js
// solution required
```