--- id: 60ffe4f4ec18cd04dc470c56 title: 步驟 54 challengeType: 0 dashedName: step-54 --- # --description-- 希望 `select` 元素保持白色背景,但是現在它的 `min-height` 屬性和 `input` 以及 `textarea` 元素的不一致。 刪掉 `min-height` 屬性和值,使這三個元素具有相同的 `min-height` 值,保持 `select` 元素背景爲白色。 # --hints-- 應該移除 `input, textarea, select` 選擇器的 `min-height`。 ```js assert.isNotEmpty(new __helpers.CSSHelp(document).getStyle('input, textarea, select')?.minHeight); ``` 應該設置 `input, textarea, select` 選擇器的 `min-height` 爲 `2em`。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('input, textarea, select')?.minHeight, '2em'); ``` 應該移除 `input, textarea` 選擇器的 `min-height` 聲明。 ```js assert.isEmpty(new __helpers.CSSHelp(document).getStyle('input, textarea')?.minHeight); ``` # --seed-- ## --seed-contents-- ```html Registration Form

Registration Form

Please fill out this form with the required information

``` ```css --fcc-editable-region-- body { width: 100%; height: 100vh; margin: 0; background-color: #1b1b32; color: #f5f6f7; font-family: Tahoma; font-size: 16px; } h1, p { margin: 1em auto; text-align: center; } form { width: 60vw; max-width: 500px; min-width: 300px; margin: 0 auto; } fieldset { border: none; padding: 2rem 0; border-bottom: 3px solid #3b3b4f; } fieldset:last-of-type { border-bottom: none; } label { display: block; margin: 0.5rem 0; } input, textarea, select { margin: 10px 0 0 0; width: 100%; } input, textarea { background-color: #0a0a23; border: 1px solid #0a0a23; color: #ffffff; min-height: 2em; } .inline { width: unset; margin: 0 0.5em 0 0; vertical-align: middle; } --fcc-editable-region-- ```