国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

directory search
CSS3 Properties 邊框(Border) Border-color Border-image Border-radius box-shadow 背景(Background) background-origin background-clip Background-size Multiple backgrounds 顏色(Color) HSL colors HSLA colors opacity RGBA colors 文本(Text effects) text-shadow text-overflow word-wrap 用戶界面(User-interface) box-sizing resize outline outline-width outline-style outline-offset outline-color nav-index nav-up nav-right nav-down nav-left 基礎(chǔ)盒模型(Basic box model) overflow overflow-x overflow-y 內(nèi)容(Generated Content) content 其它模塊(Other modules) media queries Speech columns column-width column-span column-rule column-rule-color column-rule-width column-rule-style column-gap column-fill column-count column-break-before column-break-after @font-face 選擇器(selectors) 子串匹配的屬性選擇符 E[att^="val"] 子串匹配的屬性選擇符 E[att$="val"] 子串匹配的屬性選擇符 E[att*="val"] 結(jié)構(gòu)性偽類 E:root 結(jié)構(gòu)性偽類 E:nth-child(n) 結(jié)構(gòu)性偽類 E:nth-last-child(n) 結(jié)構(gòu)性偽類 E:nth-of-type(n) 結(jié)構(gòu)性偽類 E:nth-last-of-type(n) 結(jié)構(gòu)性偽類 E:last-child 結(jié)構(gòu)性偽類 E:first-of-type 結(jié)構(gòu)性偽類 E:only-child 結(jié)構(gòu)性偽類 E:only-of-type 結(jié)構(gòu)性偽類 E:empty UI元素狀態(tài)偽類 E:checked UI元素狀態(tài)偽類 E:enabled UI元素狀態(tài)偽類 E:disabled UI元素狀態(tài)偽類 E::selection 否定偽類 E:not(s) 目標(biāo)偽類 E:target 通用兄弟元素選擇器 E ~ F
characters

語法:

background[background-image] | [background-origin] | [background-clip] | [background-repeat] | [background-size] | [background-position]

相關(guān)屬性background-image | background-origin | background-clip | background-repeat | background-size | background-position

取值:

<background-image>
指定或檢索對象的背景圖像。
<background-origin>
指定背景的顯示區(qū)域。參見background-origin
<background-clip>
指定背景的裁剪區(qū)域。參見background-clip
<background-repeat>
設(shè)置或檢索對象的背景圖像是否及如何重復(fù)鋪排。
<background-size>
指定背景圖片的大小。參見background-size
<background-position>
設(shè)置或檢索對象的背景圖像位置。

說明:

多重背景圖象,可以把不同背景圖象只放到一個塊元素里。

多個圖片url之間使用逗號隔開即可;如果有多個背景圖片,而其他屬性只有一個(例如background-repeat只有一個),表明所有背景圖片應(yīng)用該屬性值。

CSS3中在容器的多層背景,各子屬性與逗號來分隔值,如果指定的值,如下:

background-image: w1, w2, w3,…, wM
background-repeat: x1, x2, x3,…, xR
background-size: y1, y2, y3,…, yS
background-position: s1, s2, s3,…, sP

當(dāng)背景層的數(shù)值是N = max(M,R, S, P)

每個屬性可以假如它的值為n,通過重復(fù)指定的值如下所示:

background-image: w1,…wM, w1,…wM, w1,…
background-repeat: x1,…xR, x1,…xR, x1,…
background-size: y1,…yS, y1,…yS, y1,…
background-position: s1,…rP, s1,…rP, s1,…

范例書寫:

background-image: url(img/multiple-backgrounds.png), url(img/multiple-backgrounds.png), url(img/multiple-backgrounds.png);
background-position: left top, -320px bottom, -640px top;
background-repeat: no-repeat, no-repeat, repeat-y;

也可以簡寫:

background: url(img/multiple-backgrounds.png) left top no-repeat, url(img/multiple-backgrounds.png) -320px bottom no-repeat, url(img/multiple-backgrounds.png) -640px top repeat-y;

兼容性:

類型 IEInternet Explorer FirefoxFirefox ChromeChrome OperaOpera SafariSafari
版本 (×)IE6 (×)Firefox 2.0 (√)Chrome 1.0.x (×)Opera 9.63 (√)Safari 3.1
(×)IE7 (×)Firefox 3.0 (√)Chrome 2.0.x (√)Safari 4
(×)IE8 (×)Firefox 3.5

示例:

multiple-backgrounds

快速跳轉(zhuǎn)

  • 語法
  • 取值
  • 說明
  • 兼容性
  • 示例
Previous article: Next article: