JavaScript 參考手冊
background-clip 屬性設置或返回背景的繪制區(qū)域。
Internet Explorer 9+、Firefox、Opera、Chrome 和 Safari 支持 backgroundClip 屬性。
注意:Internet Explorer 8 及其之前的版本不支持 backgroundClip 屬性。
返回 backgroundClip 屬性:
設置 backgroundClip 屬性:
值 | 描述 |
---|---|
border-box | 默認值。背景按邊界框進行剪裁。 |
padding-box | 背景按填充框進行剪裁。 |
content-box | 背景按內(nèi)容框進行剪裁。 |
initial | 設置該屬性為它的默認值。請參閱 initial。 |
inherit | 從父元素繼承該屬性。請參閱 inherit。 |
默認值: | border-box |
---|---|
返回值: | 字符串,表示元素的 background-clip 屬性。 |
CSS 版本 | CSS3 |
CSS 參考手冊:background-clip 屬性