简体中文
background-clip 设置元素的背景(背景图片或颜色)是否延伸到边框、内边距盒子、内容盒子下面。
Android | iOS | web |
---|---|---|
3.9 | x | 4.0 |
background-clip: <box>#;
border-box
背景延伸至边框外沿(但是在边框下层)。
padding-box
背景延伸至内边距(padding)外沿。不会绘制到边框处。
content-box
背景被裁剪至内容区(content box)外沿。
border-box
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 ) |