---
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类应该具有值为grid的display属性。
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
## Solution
```js
// solution required
```