js 获取页面距离等,比较全的api

document.getElementById().getBoundingClientRect()


DOMRect {
bottom: 692
height: 600
left: 443
right: 817
top: 92
 374
x: 443
y: 92
}
转载标明来路-博客园, 联系方式1763907618@qq.com
原文地址:https://www.cnblogs.com/wangyongping/p/15637601.html