--- id: 6140d10d50636e14695013b2 title: 步驟 9 challengeType: 0 dashedName: step-9 --- # --description-- 爲你的 `.line` 元素創建一個選擇器。 設置 `transform` 屬性爲 `rotate(60deg)`。 請記住,`transform`屬性允許你改變一個元素的形狀。 在這種情況下,使用 `rotate(60deg)` 值會將元素圍繞其 `transform-origin` 點順時針旋轉 60 度。 # --hints-- 你應該創建一個`.line:nth-of-type(2)` 選擇器。 ```js assert(new __helpers.CSSHelp(document).getStyle('.line:nth-of-type(2)')); ``` 你的 `.line:nth-of-type(2)` 選擇器應該有一個 `transform` 屬性值爲 `rotate(60deg)`。 ```js assert(new __helpers.CSSHelp(document).getStyle('.line:nth-of-type(2)')?.transform === 'rotate(60deg)'); ``` # --seed-- ## --seed-contents-- ```html Ferris Wheel
``` ```css .wheel { border: 2px solid black; border-radius: 50%; margin-left: 50px; position: absolute; height: 55vw; width: 55vw; max-width: 500px; max-height: 500px; } .line { background-color: black; width: 50%; height: 2px; position: absolute; top: 50%; left: 50%; transform-origin: 0% 0%; } --fcc-editable-region-- --fcc-editable-region-- ```