CSS3 前僅支援單一背景圖;現可堆疊多圖與漸層。
background-colorbackground-imagebackground-repeat:repeat、repeat-x、repeat-y、no-repeatbackground-position:關鍵字(top/left/center...)、百分比、長度單位、負值background-size:50%、100px 50px、cover、contain(注意小圖放大失真)background-attachment:scroll(跟隨捲動)、fixed(固定視窗,常用做浮水印)background 簡寫屬性(省略值採預設)background-clip、background-origin、background-break(支援度較低)p {
background:
url(turq_spiral.png) 30px -10px no-repeat,
url(pink_spiral.png) 145px 0 no-repeat,
url(gray_spiral.png) 140px -30px no-repeat,
#ffbd75;
}
linear-gradient()radial-gradient()background-image 或 background 簡寫未定案屬性需加前綴,最後寫標準寫法:
-moz-transform: skewX(-45deg);
-webkit-transform: skewX(-45deg);
-ms-transform: skewX(-45deg);
-o-transform: skewX(-45deg);
transform: skewX(-45deg);
必加前綴屬性:border-image、translate、linear-gradient、transition、radial-gradient、background*、transform*、transform-origin。