--- id: 5a858944d96184f06fd60d61 title: Create Your First CSS Grid challengeType: 0 videoUrl: '' localeTitle: 创建您的第一个CSS网格 --- ## Description
通过它的设置可以将任何HTML元素成格子容器display属性设置为grid 。这使您能够使用与CSS Grid关联的所有其他属性。 注意
在CSS Grid中,父元素称为容器 ,其子元素称为item
## Instructions
container类的div显示更改为grid
## Tests
```yml tests: - text: container类应该具有值为griddisplay属性。 testString: 'assert(code.match(/.container\s*?{[\s\S]*display\s*?:\s*?grid\s*?;[\s\S]*}/gi), "container class should have a display property with a value of grid.");' ```
## Challenge Seed
```html
1
2
3
4
5
```
## Solution
```js // solution required ```