background-color:背景色
background-image:背景图片
background-repeat:背景图片重复规则
background-position:背景图片起始位置,默认0% 0%,可写top/center/bottom left/center/right,只写一个的话第二个默认值为center。
background-attachment:背景图片是否固定或者是随页面其他部分滚动,可写fixed/scroller/inherit
background-size:背景图片的尺寸
background-origin:规定background-position属性相对于什么来定位,默认值padding-box,可选content-box/padding-box/border-box
background-clip:规定图片绘制区域,默认border-box,可选content-box/border-box/padding-box
background简写方式:
background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [background-size] [background-origin] [background-clip]
例如:
background: url("") no-repeat center center / 8.8vw 11.2vw;