--- id: 5a90372638fddaf9a66b5d38 title: Use grid-column to Control Spacing challengeType: 0 videoUrl: '' localeTitle: 使用grid-column控制间距 --- ## Description
到目前为止,所讨论的所有属性都是针对网格容器的。 grid-column属性是第一个用于网格项本身的属性。创建网格的假设水平和垂直线称为线 。这些线在网格的左上角从1开始编号,向右移动列,向下移动行,向上计数。这就是3x3网格的线条:

列线

1

2

3

4

行线

1

2

3

4

要控制项目将使用的列数,您可以将grid-column属性与您希望项目开始和停止的行号一起使用。这是一个例子:
grid-column:1/3;
这将使项目从左侧网格的第一条垂直线开始,并跨越网格的第3条线,消耗两列。
## Instructions
使用类item5使项目消耗网格的最后两列。
## Tests
```yml tests: - text: item5类应该有一个grid-column具有的值属性2 / 4 testString: 'assert(code.match(/.item5\s*?{[\s\S]*grid-column\s*?:\s*?2\s*?\/\s*?4\s*?;[\s\S]*}/gi), "item5 class should have a grid-column property that has the value of 2 / 4.");' ```
## Challenge Seed
```html
1
2
3
4
5
```
## Solution
```js // solution required ```