font-family 設(shè)定文字字型 支 持:IE3、IE4適 用:所有元素可能值: 預(yù)設(shè)值:視瀏覽器而定繼承性:有一般范例:SPAN { family-name : "標(biāo)楷體" } 同軸范例:<SPAN style="family-name:標(biāo)楷體">
font-style 設(shè)定字體樣式 支 持:IE3、IE4、NC4適 用:所有元素可能值: | normal | 普通字 | | italic | 斜體字 | | oblique | 斜體字 | 預(yù)設(shè)值:normal繼承性:有一般范例:SPAN { font-style : italic } 同軸范例:<SPAN style="font-style:italic">
font-weight 設(shè)定字型份量 支 持:IE3、IE4、NC4適 用:所有元素可能值: | normal | 普通字 | | bold | 粗體字 | | bolder | 相對于父元素稍粗 | | lighter | 相對于父元素稍細(xì) | 100,200,300, 400,500,600, 700,800,900. | 數(shù)字由小到大代表筆畫由細(xì)到粗 normal=400 bold=700 | 預(yù)設(shè)值:normal繼承性:有一般范例:SPAN { font-weight : bolder } 同軸范例:<SPAN style="font-weight:bolder">
font-size 設(shè)定文字大小 支 持:IE3、IE4、NC4適 用:所有元素可能值: | <absolute-size> | 絕對大小,可用的參數(shù)由小到大分別有七項 xx-small, x-small, small, medium, large, x-large, xx-large | | <relative-size> | 相對大小,可用的參數(shù)為larger, smaller兩項 以父元素字型大小為基準(zhǔn) | | <lenght> | 長度單位,請參考第一章基本單位的相關(guān)說明 | | <percentage> | 百分比,以父元素字型大小為基準(zhǔn) | 預(yù)設(shè)值:medium繼承性:有一般范例:SPAN { font-size : 12pt } 同軸范例:<SPAN style="font-size:12pt">
font-variant 設(shè)定文字轉(zhuǎn)換 支 持:IE3、IE4、NC4適 用:所有元素可能值: | normal | 普通字 | | small-caps | 將小寫文字轉(zhuǎn)換為大寫 | 預(yù)設(shè)值:normal繼承性:有一般范例:SPAN { font-variant : small-caps } 同軸范例:<SPAN style="font-variant:small-caps">
font 綜合設(shè)定字型性質(zhì) 支 持:IE3、IE4、NC4適 用:所有元素可能值: | <font-style> | 設(shè)定字體樣式 | | <font-variant> | 設(shè)定文字轉(zhuǎn)換 | | <font-weight> | 設(shè)定字型份量 | | <font-size/line-height> | 設(shè)定文字大小與列高(請參考設(shè)定文字列高部份) | | <font-family> | 設(shè)定文字字型 | 預(yù)設(shè)值:無繼承性:有一般范例: SPAN { font : bolder small-caps 12pt/120% Arial } 同軸范例:< SPAN style="font : bolder small-caps 12pt/120% Arial"> |