font-size版本:CSS1 兼容性:IE4+ NS4+ 繼承性:有
語法:
font-size : absolute-size |
relative-size |
length
參數:
absolute-size : 根據對像字體進行調節。xx-small | x-small | small | medium | large | x-large | xx-large
relative-size : 相對於父對像中字體尺寸進行相對調節。使用成比例的em單位計算。larger | smaller
length : 百分數 | 由浮點數字和單位標識符組成的長度值,不可為負值。其百分比取值是基於父對像中字體的尺寸。請參閱
長度單位
說明:
設置或檢索對像中的字體尺寸。
默認值為absolute-size的
medium值。
對應的腳本特性為
fontSize。請參閱我編寫的其他書目。
示例:
p { font-style: normal; }
p { font-size: 12px; }
p { font-size: 20%; }
蘇沈小雨製作·保留所有權利
©2001 rain1977.comer . All rights reserved . Terms of Use .