# background-clip

background-clip 设置元素的背景(背景图片或颜色)是否延伸到边框、内边距盒子、内容盒子下面。

# uni-app x 兼容性

Android iOS web
3.9 x 4.0

# 语法

background-clip: <box>#;

# background-clip 的属性值

border-box 背景延伸至边框外沿(但是在边框下层)。

padding-box 背景延伸至内边距(padding)外沿。不会绘制到边框处。

content-box 背景被裁剪至内容区(content box)外沿。

# 默认值

border-box

# 兼容性

# background-clip 的属性值兼容性

Android iOS web
border-box 3.9 x 4.0
padding-box x x 4.0
content-box x x 4.0

# 浏览器兼容性

Chrome Edge Firefox Opera Safari IE
background-clip √( 1 ) √( 12 ) √( 4 ) √( 10.5 ) √( 5 ) √( 9 )

# 参见