[英]Full background image initially fixed, then scrolls when DIV content ends
[英]full background image that scrolls
我正在使用超大尺寸( http://buildinternet.com/project/supersized/ )進行全尺寸背景幻燈片演示,但是當用戶向上/向下滾動以閱讀文本時,我需要背景圖像進行滾動。
我用作參考的網站是http://www.samsung.com/latin/。他們使用Flash進行背景幻燈片播放。
有沒有辦法用js達到相同的目的?
謝謝
我不是Supersized的電影攝制者,但在演示站點上看,這似乎是一個簡單的CSS問題。 嘗試從position: fixed;
更改#supersized
position: fixed;
position:relative;
如果從position:fixed;
更改#superzised
position:fixed;
position:absolute;
您應該得到一個滾動圖像。
這可以解決問題,我自己使用它:
#supersized {
position:absolute;
top:0;
left:0;
}
像其他人建議的那樣,使用position:relative無效,也不能單獨使用position:absolute 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.