开发者

javascript adjust div (show/hide) display according to window scroll bar

How to change the div position, i.e in absolute position, up or down开发者_开发技巧 according to window scroll position?

If there any information regarding this, please help me out.

Or if there any example over this please share.


It's hard to understand what you're saying, but could you be looking for position:fixed instead of position:absolute? Fixed position elements don't scroll with the rest of the page, but remain at a specific position in the window.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜