backgroundClip 属性设置或返回背景的绘画区域。
返回backgroundClip属性:
object.style.backgroundClip
设置backgroundClip属性:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Value | Description |
---|---|
border-box | Default value. The background is clipped to the border box |
padding-box | The background is clipped to the padding box |
content-box | The background is clipped to the content box |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 边框 |
---|---|
返回值: | 一个字符串,表示元素的背景剪辑属性 |
CSS版本 | CSS3 |
backgroundClip
是 CSS3 (1999) 的一项功能。
所有浏览器都完全支持它:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 11 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!