---
id: 587d78a6367417b2b2512adc
title: Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
challengeType: 0
videoUrl: ''
localeTitle: 使用CSS变换属性skewY沿Y轴倾斜元素
---
## Description
假设skewX()
函数沿X轴将选定元素倾斜给定的度数,则skewY()
属性沿Y(垂直)轴倾斜元素skewY()
不足为奇了。
## Instructions
使用transform
属性,沿Y轴倾斜top
-10度的元素。
## Tests
```yml
tests:
- text: id top
的元素应沿其Y轴倾斜-10度。
testString: 'assert(code.match(/#top\s*?{\s*?.*?\s*?transform:\s*?skewY\(-10deg\);/g), "The element with id top
should be skewed by -10 degrees along its Y-axis.");'
```
## Challenge Seed
## Solution
```js
// solution required
```