当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS font-size-adjust属性
The ratio between the height of the font's lowercase letter "x" and the height of the "font-size" is called a font's aspect value. If the aspect value is high, the font will be legible when it is set to a smaller size. For example: Verdana has an aspect value of 0.58 (means that when font size is 100 px, its x-height is 58 px). Times New Roman has an aspect value of 0.46. This means that Verdana is more legible at smaller sizes than Times New Roman.
字体的"font-size"高度和字体小写字母"x"高度的比率可称为字体的aspect value(面值)。如果aspect 值比较大,那么字体大小在相对小一些的情况下会更适合阅读。比方说:Verdana的aspect值为0.58(这就说明当字体大小为100px的时候它的x-height为58px)。Times New Roman的aspect值为0.46那么在同为小一号字体的情况下Verdana会比Times New Roman更具备可读性。
The font-size-adjust property specifies an aspect value for an element that will preserve the x-height of the first-choice font.
font-size-adjust属性可以针对元素中保留首选(first-choice)字体的x-height来指定aspect值
Inherited: Yes
继承性:有
h2 { font-size-adjust: 0.58 } |
值 | 描述 |
---|---|
none | Do not preserve the font's x-height if the font is unavailable 当字体无效的时候不保留字体的x-height |
number | Defines the aspect value ratio for the font 定义字体的aspect值比率 The formula to use: font-size of first-choice font*(font-size-adjust/aspect value of available font) = font-size to apply to available font 举例: If 14px Verdana (aspect value of 0.58) was unavailable, but an available font had an aspect value of 0.46, the font-size of the substitute would be 14 * (0.58/0.46) = 17.65px |