我有这个示例HTML文件:
<div style="font-weight: 700; font-size: 3em">
Test font bold (weight = 700)
</div>
<div style="font-weight: 900; font-size: 3em">
Test font bold (weight = 900)
</div>
font-weight
的值从900
更改为700
会得到相同的结果。文本的大小确实相同。而在这个MDN文档页面https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight中,如果我更改值从900到700(使用浏览器的实时CSS更改功能),我会得到不同的结果。
sans-serif
。 - Lee Taylor