〔文字樣式屬性〕
樣式屬性 | 說明 |
line-height | 設定行距,可以使用點數pt或百分比 |
margin-left | 設定左邊界,指定像數px |
margin-right | 設定右邊界,指定像數px |
margin-top | 設定上邊界,指定像數px |
margin-bottom | 設定下邊界,指定像數px |
text-decoration | 設定文字底線,有底線:underline;無底線:none |
text-transform | 設定文字轉換,大寫:uppercase;字首大寫:capitalize |
text-align | 設定文字水平對齊方式,left、right、center、justify |
vertical-align | 設定文字垂直對齊方式,baseline、sub、super、top、text-top、middle、bottom、text-bottom |
text-indent | 設定文字段落縮排,點數或百分比 |
〔區塊樣式屬性〕
樣式屬性 | 說明 |
border-color | 設定框線色彩 |
border-style | 設定框線樣式,none、dotted、dashed、solid、double、groove、ridge、inset、outset |
border-left-width | 設定區塊左方的間隔,think、thin、medium或點數 |
border-right-width | 設定區塊右方的間隔,think、thin、medium或點數 |
border-top-width | 設定區塊上方的間隔,think、thin、medium或點數 |
border-bottom-width | 設定區塊下方的間隔,think、thin、medium或點數 |
參考資料:http://edu.kiss99.net/css/css01.htm