DHTMLET? |
屬性清單?|?相關(guān)內(nèi)容:
|
font版本:CSS1/CSS2 兼容性:IE4+ NS4+ 繼承性:有
?
語(yǔ)法:
?
font : font-style ||
font-variant ||
font-weight ||
font-size ||
line-height ||
font-family font : caption |
icon |
menu |
message-box |
small-caption |
status-bar
?
參數(shù):
?
該屬性是復(fù)合屬性。第一種聲明方式請(qǐng)參閱各參數(shù)對(duì)應(yīng)的屬性。
第二種聲明方式中的參數(shù)屬于CSS2。
caption : 使用有標(biāo)題的系統(tǒng)控件的文本字體(如按鈕,菜單等)
icon : 使用圖標(biāo)標(biāo)簽的字體
menu : 使用菜單的字體
message-box : 使用信息對(duì)話框的文本字體
small-caption : 使用小控件的字體
status-bar : 使用窗口狀態(tài)欄的字體
?
說(shuō)明:
?
設(shè)置或檢索對(duì)象中的文本特性。該屬性是復(fù)合屬性。
第一種聲明方式參數(shù)必須按照如上的排列順序。每個(gè)參數(shù)僅允許有一個(gè)值。忽略的將使用其參數(shù)對(duì)應(yīng)的獨(dú)立屬性的默認(rèn)值。
對(duì)于如何使用用戶端系統(tǒng)可能沒有的字體,可以參閱@font-face規(guī)則。
對(duì)應(yīng)的腳本特性為
font。請(qǐng)參閱我編寫的其他書目。
?
示例:
?
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 }
?
?
?
蘇沈小雨制作·保留所有權(quán)利
©2001 rain1977.comer . All rights reserved . Terms of Use .