--- id: 5a90375238fddaf9a66b5d3b title: Align an Item Vertically using align-self challengeType: 0 videoUrl: 'https://scrimba.com/p/pByETK/cmzd4fz' forumTopicId: 301123 localeTitle: 使用 align-self 垂直对齐项目 --- ## Description
正如能设置网格项沿行轴对齐方式一样,也可以设置网格项沿列轴对齐:你可以对网格项使用align-self属性。在上一个挑战中适用于justify-self属性的每个值也都适用于align-self属性。
## Instructions
用值end使类为item3的网格项底端对齐。
## Tests
```yml tests: - text: 'item3类应该有align-self属性且值为end。' testString: 'assert(code.match(/.item3\s*?{[\s\S]*align-self\s*?:\s*?end\s*?;[\s\S]*}/gi));' ```
## Challenge Seed
```html
1
2
3
4
5
```
## Solution
```js // solution required ```