-十六進(jìn)制形式 如 #RRGGBB
-RGB函數(shù)值形式 如 (RGB(x,x,x)) x 有兩種寫法,一種是0~255之間整數(shù),另一種是百分號(hào)形式 如 20%
-顏色名稱 如 red green
-用戶系統(tǒng)色盤值 如windowtext background
2.單位值的省略
當(dāng)數(shù)值為零時(shí),什么形式的單位都可以省略 . 如 width:0px 可以省略不寫.
3內(nèi)外補(bǔ)丁的簡寫
內(nèi)補(bǔ)丁:padding
外補(bǔ)丁:margin
property:value1; 表示所有邊都是一個(gè)值 value1
property:value1 value2; 表示上下值為value1,左右值為value2
property:value1 value2 value3 ; 表示上值為value1 ,左右值為value2,下值為value3;
property:value1 value2 value3 value4; 表示上下左右值依次為 value1,value2,value3,value4.
4.邊框的簡寫
border: width style color;
5.背景的簡寫
background:background-color backgroud-image backgroud-repeat backgroud-attachment backgroud-position;
6字體的簡寫
font:font-style font-variant font-weight font-size line-height font-family
7.列表的簡寫
list-style:list-style-image list-style-position list-style-type
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com