--- id: bad87fee1348bd9aedf08806 title: Change the Font Size of an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/cPp7VfD' forumTopicId: 1 localeTitle: 更改元素的字体大小 --- ## Description
字体大小由font-size属性控制,如下所示: ```css h1 { font-size: 30px; } ```
## Instructions
在包含red-textclass 选择器的<style>声明区域的里,创建一个p元素样式规则,并设置font-size16px
## Tests
```yml tests: - text: '在style样式声明区域里,p元素的font-size的值应为16px,浏览器和文本缩放应设置为 100%。' testString: assert(code.match(/p\s*{\s*font-size\s*:\s*16\s*px\s*;\s*}/i)); ```
## Challenge Seed
```html

CatPhotoApp

点击查看更多猫图.

一只仰卧着的萌猫

猫咪最喜欢的三件东西:

  • 猫薄荷
  • 激光笔
  • 千层饼

猫咪最讨厌的三件东西:

  1. 跳蚤
  2. 打雷
  3. 同类


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