常用属性:

背景颜色:background-color: #000;

背景图片:background-image: none;

背景平铺:background-repeat: no-repeat;

背景图片位置:background-position: top;

指定背景图片的大小:background-size: cover;

background-clip : 背景剪裁属性是从指定位置开始绘制:content-box;

background-origin
指定了背景图像的位置区域: (content-box, padding-box,和 border-box区域内可以放置背景图像。)


网友评论