开发者

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

开发者 https://www.devze.com 2023-04-10 13:28 出处:网络
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?

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

精彩评论

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

关注公众号