How does this work: http://welbog.homeip.net/ [closed]
How does this work?: http://welbog.homeip.net/
Just scroll down. It looks cool, it looks da开发者_如何学Pythonmn cool, and it works without javascript. What's that?
That's made by the divs having a fixed background that doesn't scroll with it and is very tall.
You can see here in the CSS:
background-attachment: fixed;
background-repeat: no-repeat;
background-position: right top;
This will keep it attached to the top-right, never repeat it and make it appear "fixed" to the site.
Each div has a different background to give this effect.
It is fixed background, and every element(paragraph) has it
background-attachment: fixed
plus some css expression magic for older versions of ie
精彩评论