当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS font-size-adjust属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS font-size-adjust属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 380 ::
收藏到网摘: n/a

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
首选字体的大小*(font-size-adjust/有效字体的aspect值) = 会应用到有效字体的大小

举例:

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
如果Verdana (aspect 值为 0.58)无效,但有效的字体aspect值为0.46,那么所取代的字体大小会是14*(0.58/0.46) = 17.65px

评论 (0) All

登陆 | 还没注册?