The best CSS3 font-size-adjust property Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Attribute definitions and instructions,grammar,
By specifying font-size-adjust property, the browser will adjust the font size, regardless of the font family ( "Arial" property value 0.58):
At present, only Firefox support font-size-adjust property.
font-size-adjust property, allowing you to better control the font size, font choice when the first is unavailable.
When a font is not available, the browser uses the second specified font. This may lead to changes in font size. To prevent this, use the font-size-adjust property.
All fonts can have "aspect value", which is the lowercase letter "X" and the uppercase letter "X" of the size difference.
When the browser know "aspect value" is the first choice of font, the browser can find out what kind of font-size font display text using the second choice.
Defaults: | none |
---|---|
inherit: | yes |
version: | CSS3 |
JavaScript syntax: | object .style.fontSizeAdjust = "0.58" |
值 | 描述 |
---|---|
number | 定义字体的 aspect 值比率。 可使用的公式: 首选字体的字体尺寸 * (font-size-adjust 值 / 可用字体的 aspect 值)=可应用到可用字体的字体尺寸 举例: 如果 14px 的 Verdana(aspect 值是 0.58)不可用,但是某个可用的字体的 aspect 值是 0.46,那么替代字体的尺寸将是 14 * (0.58/0.46) = 17.65px。 |
none | 默认。如果此字体不可用,则不保持此字体的 x-height。 |
inherit | 继承父元素的字体大小调整属性 |