开发者

How to Scroll a Div Without Scrollbars (mousewheel) (example included)

S开发者_StackOverflow中文版ee: http://www.blackboard-consulting.com/partnerzy/

How am I able to create a div that scrolls like that, without the rest of the site moving?

Thanks!


That's pretty simple. The sidebar has a fixed position which prevents it from scrolling while the content can.

#sidebar{
   position:fixed;
   min-height:100%;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜