The function setScrollTop () { Var scrollTop=0; If (document. The documentElement & amp; & Document. The documentElement. ScrollTop) { ScrollTop=document. DocumentElement. ScrollTop; Window. The sessionStorage. SetItem (" scrollTop, "scrollTop);
{} else if (the document body) ScrollTop=document. The body. The scrollTop; Window. The sessionStorage. SetItem (" scrollTop, "scrollTop);
} Return the scrollTop; } Distance can't use this way to obtain the scroll bar at the top of the height, the bosses have encountered this problem?