一千萬個為什麽

搜索

使用css滾動期間保持背景圖像固定

This is going to be rather silly of me asking, but how do I keep the background image fixed during a page scroll. I have this CSS code, and the image is a background of the body and not <div></div>

    body{
 background-position:center;
 background-image:url(../images/images5.jpg);
}

謝謝 吉恩

最佳答案