Style backgroundClip 屬性
實例
指定背景的繪製區域:
	document.getElementById("myDIV").style.backgroundClip="content-box";
定義和用法
background-clip 屬性設置或返回背景的繪製區域。
流覽器支持
 
 
 
 

Internet Explorer 9+、Firefox、Opera、Chrome 和 Safari 支持 backgroundClip 屬性。
注意:Internet Explorer 8 及其之前的版本不支持 backgroundClip 屬性。
語法
返回 backgroundClip 屬性:
	object.style.backgroundClip
設置 backgroundClip 屬性:
	object.style.backgroundClip="border-box|padding-box|content-box|initial|inherit"
屬性值
| 值 | 描述 | 
|---|---|
| border-box | 默認值。背景按邊界框進行剪裁。 | 
| padding-box | 背景按填充框進行剪裁。 | 
| content-box | 背景按內容框進行剪裁。 | 
| initial | 設置該屬性為它的默認值。請參閱 initial。 | 
| inherit | 從父元素繼承該屬性。請參閱 inherit。 | 
技術細節
| 默認值: | border-box | 
|---|---|
| 返回值: | 字串,表示元素的 background-clip 屬性。 | 
| CSS 版本 | CSS3 | 
相關文章
CSS 參考手冊:background-clip 屬性

 Style 對象
 Style 對象