CSS background 几个不常用的属性-2


 设置背景图像的起始位置 background-position:取值范围1.top right bottom left center 5个值的任意一个或两个 2.百分比的一个或两个 3.像素值的一个或两个 (如果只有一个值,那么另一个值是50%或center)(详细用法见

CSS background-position用法 


规定背景图片的定位区域 background-origin 图片从哪里开始定位 三个值padding-box border-box content-box
 属性规定背景的绘制区域 background-clip 背景在哪部分显现  三个值padding-box border-box content-box
 属性设置背景图像是否固定或者随着页面的其余部分滚动 background-attachment 三个值   scroll fixed inhreit


原文地址:https://www.cnblogs.com/ziyuan-shanliangdehaohaizi/p/6599932.html