--- id: 60b69a66b6ddb80858c51586 title: 步驟 16 challengeType: 0 dashedName: step-16 --- # --description-- 使用 `id` 選擇器,爲 `offwhite-character` 元素創建規則。 給它一個 `width` 爲 `300px`、一個 `height` 爲 `550px` 和一個 `background-color` 爲 `GhostWhite`。 # --hints-- 應該使用 `#offwhite-character` 選擇器。 ```js assert(new __helpers.CSSHelp(document).getStyle('#offwhite-character')); ``` `#offwhite-character` 應該有一個 `width` 屬性設置爲 `300px`。 ```js assert(new __helpers.CSSHelp(document).getStyle('#offwhite-character')?.width === '300px'); ``` `#offwhite-character` 應該有一個 `height` 屬性設置爲 `550px`。 ```js assert(new __helpers.CSSHelp(document).getStyle('#offwhite-character')?.height === '550px'); ``` `#offwhite-character` 應該有一個 `background-color` 屬性設置爲 `GhostWhite`。 ```js assert(new __helpers.CSSHelp(document).getStyle('#offwhite-character')?.backgroundColor === 'ghostwhite'); ``` # --seed-- ## --seed-contents-- ```html Picasso Painting
``` ```css body { background-color: rgb(184, 132, 46); } #back-wall { background-color: #8B4513; width: 100%; height: 60%; position: absolute; top: 0; left: 0; z-index: -1; } --fcc-editable-region-- --fcc-editable-region-- ```