ban-s
function ScollPostion() {
var t, l, w, h;
if (document.documentElement && document.documentElement.scrollTop) {
t = document.documentElement.scrollTop;
l = document.documentElement.scrollLeft;
w = document.documentElement.scrollWidth;
h = document.documentElement.scrollHeight;
} else if (document.body) {
t = document.body.scrollTop;
l = document.body.scrollLeft;
w = document.body.scrollWidth;
h = document.body.scrollHeight;
}
return {
top: t,
left: l,
width: w,
height: h
};
}

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
  • 2021-08-21
  • 2021-04-30
  • 2021-11-13
  • 2021-11-17
  • 2021-11-17
猜你喜欢
  • 2021-11-17
  • 2021-09-16
  • 2021-11-17
  • 2021-11-17
相关资源
相似解决方案