css font-size字體大小使用
語法:
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%; }
- css font字體使用方法
- font : font-style || font-variant || font-weight || font-size || line-height || font-family
- 03-21 關注:0
- CSS 顏色名
- HTML 和 CSS 顏色規范中定義了 147 中顏色名(17 種標準顏色加 130 種其他顏色)。下面的表格中列出了所有這些顏色,以及它們的十六進
- 03-21 關注:0
- CSS 顏色
- CSS 顏色使用組合了紅綠藍顏色值 (RGB) 的十六進制 (hex) 表示法進行定義。
- 03-21 關注:0