font-size
属性用来指定元素内文字的大小。这个规则可以应用到多个元素上,合理的使用,能让页面的文字显示的错落有致。在本挑战里,你将要设置 h1
到 h6
的每个标题文字的大小。
h1
标签的 font-size
为 68px。h2
标签的 font-size
为 52px。h3
标签的 font-size
为 40px。h4
标签的 font-size
为 32px。h5
标签的 font-size
为 21px。h6
标签的 font-size
为 14px。h1
标签的 font-size
为 68px
。'
testString: assert($('h1').css('font-size') == '68px');
- text: '你应该设置 h2
标签的 font-size
为 52px
。'
testString: assert($('h2').css('font-size') == '52px');
- text: '你应该设置 h3
标签的 font-size
为 40px
。'
testString: assert($('h3').css('font-size') == '40px');
- text: '你应该设置 h4
标签的 font-size
为 32px
。'
testString: assert($('h4').css('font-size') == '32px');
- text: '你应该设置 h5
标签的 font-size
为 21px
。'
testString: assert($('h5').css('font-size') == '21px');
- text: '你应该设置 h6
标签的 font-size
为 14px
。'
testString: assert($('h6').css('font-size') == '14px');
```