美文网首页
关于background-origin的属性认识

关于background-origin的属性认识

作者: 高级民工 | 来源:发表于2016-04-27 22:41 被阅读295次

                  

可能有很多小伙伴想对自己的背景图做一些"手脚",所以介绍一些css3中关于background-origin的东西.

background-origin 属性规定 background-position 属性相对于什么位置来定位。

background-origin: padding-box|border-box|content-box;

padding-box 背景图像相对于内边距框来定位

border-box 背景图像相对于边框盒来定位(前提你有边框!!!)

content-box 背景图像相对于内容框来定位

相关文章

网友评论

      本文标题:关于background-origin的属性认识

      本文链接:https://www.haomeiwen.com/subject/owycrttx.html