简体   繁体   中英

full background image that scrolls

I'm using supersized ( http://buildinternet.com/project/supersized/ ) for a full size image background slideshow, but I need the background image to scroll as the user scrolls up/down to read text.

The site i'm using as a reference is http://www.samsung.com/latin/ They used flash for the background slideshow.

Is there any way to achieve the same with js?

Thanks

I am not filmier with Supersized, but taking a look at the demo site , it appears to be a simple CSS problem. Try changing #supersized from position: fixed; to position:relative;

If you change #superzised from position:fixed; to position:absolute; you should get a scrolling image.

This will do the trick, I'm using it myself:

#supersized {
    position:absolute;
    top:0;
    left:0;
    }

Using position:relative as others have suggested won't work, nor will using position:absolute by itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM