document.getElementById().getBoundingClientRect() DOMRect { bottom: 692 height: 600 left: 443 right: 817 top: 92 374 x: 443 y: 92 }
js 获取页面距离等,比较全的api
转载标明来路-博客园,
联系方式1763907618@qq.com
document.getElementById().getBoundingClientRect() DOMRect { bottom: 692 height: 600 left: 443 right: 817 top: 92 374 x: 443 y: 92 }