background-color:設(shè)置背景顏色。
background-image:設(shè)置背景圖片。
background-repeat:指定背景圖片如何重復(fù)顯示。
background-position:設(shè)置背景圖片的位置。
background-size:設(shè)置背景圖片的尺寸。
background-attachment:指定背景圖片是否固定或隨滾動(dòng)而移動(dòng)。
background-origin:指定背景圖片的起始位置。
background-clip:指定背景的繪制區(qū)域。
background-blend-mode:設(shè)置背景圖像與背景顏色的混合模式。
.element {
? ? background: #f1f1f1 url('background-image.jpg') no-repeat center center;
? ? background-size: cover;
? ? background-attachment: fixed;
}