摘要:
获取滚动条的高度: 1 function getScrollTop1() { 2 if ('pageYOffset' in window) { 3 return window.pageYOffset; 4 } else if (document.compatMode === "BackCompat") { 5 return document.body.scrollTop; 6 } else { 7 return document.documentElement.scrollTop; 8 } 9 }10 11 12 ... 阅读全文