Explain why scrollTop() always returns 0 here

后端 未结 3 509
梦毁少年i
梦毁少年i 2021-02-10 03:13

See http://codepen.io/anon/pen/NGqPNz

CSS:

html {
  height: 100%;
  overflow-y: hidden;
}
body {
  height: 100%;
  overflow-y: auto;
}

3条回答
提交回复
热议问题