background-origin
规定了指定背景图片 background-image
属性的原点位置的背景相对区域。
注意:当使用
background-color
时,此属性无效。
默认值 padding-box
背景图片的摆放以 padding 区域为参考
border-box
背景图片的摆放以 border 区域为参考
content-box
背景图片的摆放以 content 区域为参考
初始值 | padding-box |
适用元素 | all elements |
是否支持继承 | no |
是否支持动画 | no |
inherit
模式background-color
不生效LCD tables only load in the browser