1. 程式人生 > >css 設置背景圖片鋪滿固定不動

css 設置背景圖片鋪滿固定不動

span ati img eight ive fix b- fixed bsp

#page{

position: relative;

width: 100%;

height: 100%;

background-image:url(../img/bg.JPG);

background-attachment: fixed;

background-repeat: no-repeat;

background-size: cover;

float: left;

}

css 設置背景圖片鋪滿固定不動