--- id: 587d781b367417b2b2512abd title: 调整标题与段落的大小 challengeType: 0 videoUrl: 'https://scrimba.com/c/c3bRPTz' forumTopicId: 301037 dashedName: adjust-the-size-of-a-heading-element-versus-a-paragraph-element --- # --description-- 标题标签的字体大小(从 `h1` 到 `h6`)一般应该大于段落标签的字体大小。 这使用户更容易在视觉上了解页面上所有内容的布局和重要程度。 你可以使用 `font-size` 属性来设置元素内文字的大小。 # --instructions-- 把 `h4` 标签的 `font-size` 的属性值改成 27px,让标题更醒目。 # --hints-- 应给 `h4` 元素添加一个 `font-size` 属性并将属性值设置为 27px。 ```js assert($('h4').css('font-size') == '27px'); ``` # --seed-- ## --seed-contents-- ```html
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.