开发者

How does this work: http://welbog.homeip.net/ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜