收藏本页 | 网站地图 | 投稿指南
 
 
当前位置:首页 >> 学院首页 >> 网页设计 >> CSS >>

CSS-FONT样式

放大字体  缩小字体  At: 2005-10-04 02:21  By: master8 转载 来源: 互联网
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 
取值:
font-style  :?? CSS1  请参阅 font-style 属性 
font-variant  :?? CSS1  请参阅 font-variant 属性 
font-weight  :?? CSS1  请参阅 font-weight 属性 
font-size  :?? CSS1  请参阅 font-size 属性 
line-height  :?? CSS1  请参阅 line-height 属性 
font-family  :?? CSS1  请参阅 font-family 属性 
caption  :?? CSS2  使用有标题的系统控件的文本字体(如按钮,菜单等) 
icon  :?? CSS2  使用图标标签的字体 
menu  :?? CSS2  使用菜单的字体 
message-box  :?? CSS2  使用信息对话框的文本字体 
small-caption  :?? CSS2  使用小控件的字体 
status-bar  :?? CSS2  使用窗口状态栏的字体 

说明:
设置或检索对象中的文本特性。该属性是复合属性。
默认值为: normal normal normal medium normal "Times New Roman" 。
第一种声明方式参数必须按照如上的排列顺序。每个参数仅允许有一个值。忽略的将使用其参数对应的独立属性的默认值。
对于如何使用用户端系统可能没有的字体,可以参阅 @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 } 
 






         









 
Google
论坛精华  
 
 
  ©2005-2008 站长吧 Master8.NET All Rights Reserved 陕ICP备05010609号