document.getElementsByClassName("box")[0].getBoundingClientRect().top
js元素距离顶部距离
最新推荐文章于 2024-04-08 17:49:09 发布
document.getElementsByClassName("box")[0].getBoundingClientRect().top