Files
freeCodeCamp/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/use-the-css-transform-property-skewx-to-skew-an-element-along-the-x-axis.md

706 B
Raw Blame History

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
587d78a6367417b2b2512adb 使用 CSS Transform skex 属性沿X轴倾斜元素 0 https://scrimba.com/c/cyLP8Sr 301074

--description--

接下来要介绍的 transform 属性是 skewXskewX 使选择的元素沿着 X 轴(横向)翻转指定的角度。

下面的代码沿着 X 轴翻转 p 元素 -32 度。

p {
  transform: skewX(-32deg);
}

--instructions--

使用 transform 属性沿 X 轴翻转 id 为 bottom 的元素 24 度。

--hints--

id 为 bottom 的元素应该沿着 X 轴翻转 24 度。

assert(code.match(/#bottom\s*?{\s*?.*?\s*?transform:\s*?skewX\(24deg\);/g));

--solutions--