background-clip

important note重要訊息:

本文件為初步資訊而且可能隨時變更。

設定背景繪製區域。

語法

{ background-clip: sClip }

可能的值

sClip

指定下列其中一個值的字串:

border-box

預設值。依框線方塊的範圍繪製 (裁剪) 背景。

padding-box

依邊框間距方塊的範圍繪製 (裁剪) 背景。

content-box

依內容方塊的範圍繪製 (裁剪) 背景。

此屬性的預設值為 border-box 。這不是繼承屬性。

備註

方塊的背景可以有多個圖層。圖層數目是由 background-image 屬性中逗號分隔值的數目所決定。每個影像的大小、位置和並排方式都是根據其他背景屬性 ( background-attachment , background-clipbackground-originbackground-positionbackground-repeatbackground-size ) 中的對應值來設定。清單中的第一個影像是最接近使用者的圖層,第二個影像顯示在第一個影像後面,依此類推。

標準資訊

您可以在 CSS Selectors Level 3 (CSS 選取器層級 3) Gg721790.xtlink_newWindow(zh-tw,Expression.40).png 找到此屬性的定義。

適用範圍

a, address, b, big, blockquote, body, button, caption, center, cite, code, col, colgroup, custom, dd, defaults, dfn, div, dl, dt, em, fieldset, form, hn, html, i, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, li, ol, p, s, span, sub, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var, xmp

另請參閱

概念

background
background-attachment
background-color
background-image
background-origin
background-position
background-repeat
background-size