---
id: 5a90375238fddaf9a66b5d3b
title: Align an Item Vertically using align-self
challengeType: 0
videoUrl: ''
localeTitle: 使用align-self垂直对齐项目
---
## Description
正如您可以水平对齐项目一样,也可以垂直对齐项目。为此,您可以在项目上使用align-self
属性。此属性接受来自上一次挑战的所有与justify-self
相同的值。
## Instructions
## 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), "item3
class should have a align-self
property that has the value of end
.");'
```
## Challenge Seed
## Solution
```js
// solution required
```