Today I wrote the code today and then I used $ ("body"). Scrolltop ();
It was found that it was not used in IE when testing.
I have touched this problem before, but I remember it seemed to use $ ("html"). Scrolltop (); solved. It was found to have been discovered this time.
Later, I saw it online and found that you should use $ (window). Scrolltop (); or $ (documen). Scrolltop ();
Record. Essence Recently, I watched "JavaScript Advanced Program Design" and found that these things related to distance are too different in each browser.
I have never felt this with jQuery.