背景颜色(Background Color):
background-color: blue;
背景图片(Background Image):
background-image: url('path/to/image.jpg');
背景重复(Background Repeat):
background-repeat: repeat; // 图片在垂直和水平方向重复 background-repeat: repeat-x; // 图片只在水平方向重复 background-repeat: repeat-y; // 图片只在垂直方向重复
背景位置(Background Position):
background-position: left top; background-position: center center; background-position: 100px 200px; // 使用具体的数值
背景附着(Background Attachment):
background-attachment: scroll; // 背景图像随元素内容滚动 background-attachment: fixed; // 背景图像固定不动
标签:常用,repeat,background,--,背景,样式,Background,position,重复 From: https://www.cnblogs.com/mxleader/p/17986947