---
id: 5a9036ee38fddaf9a66b5d35
title: Create a Column Gap Using grid-column-gap
challengeType: 0
videoUrl: ''
localeTitle: 使用grid-column-gap创建列间隙
---
## Description
到目前为止,在你创建的网格中,列都相互紧密相连。有时您希望列之间存在间隙。要在列之间添加间隙,请使用grid-column-gap
属性,如下所示: grid-column-gap:10px;
这会在我们所有列之间创建10px的空白空间。
## Instructions
## Tests
```yml
tests:
- text: container
类应该具有值为20px
的grid-column-gap
属性。
testString: 'assert(code.match(/.container\s*?{[\s\S]*grid-column-gap\s*?:\s*?20px\s*?;[\s\S]*}/gi), "container
class should have a grid-column-gap
property that has the value of 20px
.");'
```
## Challenge Seed
## Solution
```js
// solution required
```