jquery - JavaScript scrollTo method does nothing? -


So I'm trying to get some scrolling functionality to work on some tabs. After not being fortunate, I can see the window.scrollTo (0, 800); I decide to stick if I can have a scroll. Nothing happens to me, I have an AdWords that spreads and then I want to scroll a particular element in it. But for now I would be very happy to see just scrolling the thing.

If you have something like this:

html, body {height: 100%; Overflow: Auto; }

If both body and HTML are defined as the height of 100% and the scrolling is enabled, the window. ScrollTo (and all derived scrolling mechanisms) even though a scrollbar is not displayed (Which can be used by the user), when the content is more than 100% body height, the reason that the scrollbar you see is not of the window but rather of the body.

Solution:

  html {height: 100%; Overflow: Auto; Body {height: 100%; }  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -