jQuery scrolling fixed div

2019-07-17 04:07发布

问题:

I want the left div to scroll with the content, but the problem is that this div is higher then the screen. If the user is on the bottom of the page, they must see the bottom of the left div.

I'm using jQuery as js library

回答1:

use position:absolute instead of fixed. Otherwise you can't really scroll a fixed div... kind of defeats the purpose.