---
id: 5a94fdf869fb03452672e45b
title: Align All Items Vertically using align-items
challengeType: 0
videoUrl: ''
localeTitle: 使用align-items垂直对齐所有项目
---
## Description
使用网格容器上的align-items
属性将为网格中的所有项目设置垂直对齐方式。
## Instructions
## Tests
```yml
tests:
- text: container
类应该具有值为end
的align-items
属性。
testString: 'assert(code.match(/.container\s*?{[\s\S]*align-items\s*?:\s*?end\s*?;[\s\S]*}/gi), "container
class should have a align-items
property that has the value of end
.");'
```
## Challenge Seed
## Solution
```js
// solution required
```