htm5需記程式碼

JayaChou發表於2020-11-05

font-family—字型系列

font-size—字型

font-style—字型樣式
(normal正常)(italic斜體)(oblique偏斜體)

line-height: normal—行高
(normal正常)

font-weight—粗細
(normal正常)(bold粗細)(bolder特粗)
(lighter細體)

font-variant—變體
(small-caps小型大寫字母) (normal正常)

color—顏色

text-decoration—文字修飾
(underline下劃線) (overline上劃線)
(line-through刪除線) (blink閃爍) (none無)

background-color—背景顏色

background-image—背景圖片
(後面是圖片路徑,但是還不熟練,待備註0,0)

background-attachment—附加
(才疏學淺,老師沒講過這個樣式,所以不會。0,0)
(fixed固定)(scroll滾動)

background-repeat—背景重複
(no-repeat)(repeat)(repeat-x橫向重複)
(repeat-y縱向重複)

background-position—背景位置
(left左)(center居中)(right右)(top頂部) (bottom底部)

word-spacing—單詞間距
(normal正常)

letter-spacing—字母間距
(normal正常)

text-align—文字對齊
(left左)(center居中)(right右)(justify)

text-indent—文字縮排
(單位)

display—顯示
(block塊) (inline-block內聯塊)還有很多,但是在下沒學過0,0
height—高
(單位)

width—寬
(單位)

float—浮動
(left左)(right右)

margin—外邊距

相關文章