css - 百的倍数的最大字体粗细值是多少

标签 css fonts

在 CSS 中,当我们将 font-weight 指定为百的倍数时,如 font-weight: 500;字体粗细:700;等等。

font-weight 是否有任何最大值,使得 font-weight 在一定范围内会特别粗或最大,比如:font-weight:1500 那样

最佳答案

900CSS2.1 specification 中定义的最大值:

normal | bold | bolder | lighter
100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
inherit

The 'font-weight' property selects the weight of the font. The values '100' to '900' form an ordered sequence, where each number indicates a weight that is at least as dark as its predecessor. The keyword 'normal' is synonymous with '400', and 'bold' is synonymous with '700'. Keywords other than 'normal' and 'bold' have been shown to be often confused with font names and a numerical scale was therefore chosen for the 9-value list.

关于css - 百的倍数的最大字体粗细值是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19541953/

相关文章:

html - 链接和按钮定位

html - li 元素上的左边框以标记事件元素

javascript - CSS 缩放 Div 居中

Java - 无需图形的准确字体高度

cocoa - Cocoa 中未本地化的字体集合名称

javascript - 将禁用的输出字段更改为带前缀的文本

html - 显示对齐问题 :table-cell in Firefox

ios - 垂直居中 UILabel 时忽略 Ascender 和 Descender?

java - 字体渲染质量会受到编程的影响,还是完全由操作系统处理?

css - Safari 会切断带有超出字体文件边界框字符的字体