--- id: 587d7791367417b2b2512ab5 title: Adjust the Height of an Element Using the height Property challengeType: 0 videoUrl: 'https://scrimba.com/c/cEDaDTN' forumTopicId: 301034 localeTitle: 使用 height 属性调整元素的宽度 --- ## Description
width 属性类似,你可以使用 CSS 里面的 height 属性来指定元素的高度。下面这个例子把图片的高度设置为 20px: ```css img { height: 20px; } ```
## Instructions
h4 标签添加 height 属性并设置值为 25px。 注意: 可能需要将浏览器的缩放比调整为 100% 才能通过这一挑战。
## Tests
```yml tests: - text: '你应该设置 h4height 属性,使其值为 25px。' testString: assert($('h4').css('height') == '25px', '你应该设置 h4height 属性,使其值为 25px。'); ```
## Challenge Seed
```html

Google

Google 由在斯坦福大学攻读理工博士的拉里·佩奇和谢尔盖·布林共同创建。

```
## Solution
```html // solution required ```