freeCodeCamp/guide/chinese/certifications/responsive-web-design/css-grid/create-a-column-gap-using-g.../index.md

26 lines
524 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Create a Column Gap Using grid-column-gap
localeTitle: 使用grid-column-gap创建列间隙
---
## 使用grid-column-gap创建列间隙
这个挑战要求您在.container中的CSS Grid的所有列之间添加20px的间隙。
### 暗示
要添加网格列之间的间隙,我们使用:
```css
grid-column-gap: parameter;
```
其中参数是所需的间隙。
### 解
由于挑战是你添加了20px的差距你可以将以下行添加到.container CSS代码块。
```css
grid-column-gap: 20px;
```