以下為本站文章分類清單

 


中文版(簡體)說明

以下為本站側欄內容

以下為本頁本文內容

常用在網際排版中的屬性

CSS 屬性有相當多,但目前完全能在流覽器中正確運作的, 大約僅有一半多一點。而且很多是幾乎用不著的項用,這裡, 我們列舉了常用,能正確地在流覽器中運作的屬性,及其可能 的值。至於,太生澀或不常用的,網友們可以自行查閱 W3C 文件。

文字方面

文字屬性 說明
font-family 字體名稱,字體名稱,… 字型使用順位
font-style Normal | italic | oblique 字體格式
font-variant Normal | small-caps 文字變化
font-weight Normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 文字粗細
font-size 點數 (pt) | 百分比 文字大小

背景

背景及色彩屬性 說明
color #RRGGBB 指定前景色彩
background-color #RRGGBB 指定背景色彩
background-image url(檔名) 指定背景底圖
background-attachment scroll | fixed 背景底圖是否可捲動
background-position px 背景底圖的起始位置

段落

段落屬性 說明
word-spacing 點數(pt) 字距
letter-spacing 點數 (pt) 字母距
text-decoration none | underline | overline | line-through | blink 文字修飾
vertical-align baseline | sub | super | top | text-top | middle | bottom | text-bottom 垂直對齊
text-transform none | capitalize | uppercase | lowercase 文字自動轉換
text-align left | right | center | justify 對齊
text-indent 點數 (pt) | 百分比 設定內縮
line-height 點數 (pt) | 百分比 行高

圖層

圖層屬性 使用者修正
width 自動設定 | 點數 (pt) | 百分比 O
Height 自動設定 | 點數 (pt) | 百分比 O
position absolute | relative X
left 點數(pt) | 百分比 O
Top 點數(pt) | 百分比 O
z-index 正整數 O
visibility visible | hidden O
上一頁:特殊效果

 

以下為文章回應區

同意轉載,不過麻煩看一下轉載需知

divider

給個回應
姓名:
佈落格網址:
  如果您是要發問問題, 最好有個問題測試的網址, 這樣比較容易找到您問題所在, 謝謝
內容: