--- id: bad87fee1348bd9aedf08806 title: Change the Font Size of an Element challengeType: 0 videoUrl: '' localeTitle: 更改元素的字体大小 --- ## Description
字体大小由font-size CSS属性控制,如下所示:
h1 {
font-size:30px;
}
## Instructions
里面的相同<style>包含您的标记red-text类,创建一个条目p元素和设置font-size为16个像素( 16px )。
## Tests
```yml tests: - text: 在style标记之间,给出p元素font-size16px 。浏览器和文本缩放应为100%。 testString: 'assert(code.match(/p\s*{\s*font-size\s*:\s*16\s*px\s*;\s*}/i), "Between the style tags, give the p elements font-size of 16px. Browser and Text zoom should be at 100%.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```
## Solution
```js // solution required ```