my web page pop-up window is relatively long, need to scroll window to see the entire pop-up window, inside the pop-up window there are many need to use nicescroll, if the window is not scrolling, scroll bar initialization is normal, scroll window, scroll bar fell on the top, looked at the style, because it is relative to the body top positioning, so scroll window, scroll bar will not follow the scroll. I have tried to modify the railoffset configuration and set the elements that need to beautify the scroll bar to absolute positioning, all of which are invalid. Here is my code
js:
css:
after scrolling the window, the scroll bar originally in the circle is misplaced