--- id: 587d78a6367417b2b2512adb title: Use the CSS Transform Property skewX to Skew an Element Along the X-Axis challengeType: 0 videoUrl: '' localeTitle: 使用CSS变换属性skewX沿X轴倾斜元素 --- ## Description
transform属性的下一个函数是skewX() ,它将选定元素沿其X(水平)轴倾斜给定的度数。以下代码沿X轴将段落元素倾斜-32度。
p {
transform:skewX(-32deg);
}
## Instructions
使用transform属性将具有bottom id的元素沿X轴倾斜24度。
## Tests
```yml tests: - text: 具有id bottom的元素应沿其X轴倾斜24度。 testString: 'assert(code.match(/#bottom\s*?{\s*?.*?\s*?transform:\s*?skewX\(24deg\);/g), "The element with id bottom should be skewed by 24 degrees along its X-axis.");' ```
## Challenge Seed
```html
```
## Solution
```js // solution required ```