font版本:CSS1/CSS2  兼容性:IE4+ NS4+ 继承性:有
 语法:
 font : font-style ||
  font-variant ||
 font-weight ||
 font-size ||
 line-height ||
 font-family 
font : caption |
 icon |
 menu |
 message-box |
 small-caption |
 status-bar 
 参数:
 该属性是复合属性。第一种声明方式请参阅各参数对应的属性。
第二种声明方式中的参数属于CSS2。
 caption : 使用有标题的系统控件的文本字体(如按钮,菜单等)
 icon : 使用图标标签的字体
 menu : 使用菜单的字体
 message-box  : 使用信息对话框的文本字体
 small-caption : 使用小控件的字体
 status-bar : 使用窗口状态栏的字体
 
说明:
 设置或检索对象中的文本特性。该属性是复合属性。
第一种声明方式参数必须按照如上的排列顺序。每个参数仅允许有一个值。忽略的将使用其参数对应的独立属性的默认值。
对于如何使用用户端系统可能没有的字体,可以参阅
@font-face规则。
对应的脚本特性为
font。请参阅我编写的其他书目。
 
示例:
 p { font:  italic  small-caps  600  12pts/18pts  宋体; } 
p { font:  italic  small-caps  600  12pts/150%  Courier; } 
p { font:  italic  small-caps  600  12pts/1.5  Courier; } 
p { font:  italic  small-caps  600  12pts/18pts  Courier; } 
p { font:  /18pts  serif; } 
p { font:  oblique  100  24pts; } 
H1 { font: 15pt/17pt bold "Arial" normal }
   
苏沈小雨制作·保留所有权利
©2001 rain1977.comer . All rights reserved . Terms of Use .