font-size
,在这里您将调整font-weight
。 font-weight
属性设置文本部分中字符的粗细或粗细。 h1
标记的font-weight
设置为800。 h2
标记的font-weight
设置为600。 h3
标记的font-weight
设置为500。 h4
标记的font-weight
设置为400。 h5
标记的font-weight
设置为300。 h6
标签的font-weight
设置为200。 h1
标记的font-weight
属性设置为800。
testString: 'assert($("h1").css("font-weight") == "800", "Your code should set the font-weight
property for the h1
tag to 800.");'
- text: 您的代码应将h2
标记的font-weight
属性设置为600。
testString: 'assert($("h2").css("font-weight") == "600", "Your code should set the font-weight
property for the h2
tag to 600.");'
- text: 您的代码应将h3
标记的font-weight
属性设置为500。
testString: 'assert($("h3").css("font-weight") == "500", "Your code should set the font-weight
property for the h3
tag to 500.");'
- text: 您的代码应将h4
标记的font-weight
属性设置为400。
testString: 'assert($("h4").css("font-weight") == "400", "Your code should set the font-weight
property for the h4
tag to 400.");'
- text: 您的代码应将h5
标记的font-weight
属性设置为300。
testString: 'assert($("h5").css("font-weight") == "300", "Your code should set the font-weight
property for the h5
tag to 300.");'
- text: 您的代码应将h6
标记的font-weight
属性设置为200。
testString: 'assert($("h6").css("font-weight") == "200", "Your code should set the font-weight
property for the h6
tag to 200.");'
```