background-origin 相对于什么位置来定位
padding-box |
背景图像相对于内边距框来定位。 |
border-box |
背景图像相对于边框盒来定位。 |
content-box |
背景图像相对于内容框来定位。 |
background-clip 设置最终显示那些区域
值 |
描述 |
border-box |
背景被裁剪到边框盒。 |
padding-box |
背景被裁剪到内边距框。 |
content-box |
背景被裁剪到内容框。 |
综合案例:精灵图的使用。
代码:
原文:https://www.cnblogs.com/ll15888/p/12317835.html