获取元素与页面距离的方法(getBoundingClientRect),getBoundingClientRect
就是“得到客户端矩形边界”的意思,或者使用邪恶记法记住“割(g
)逼(b
)艹(c
)软(r
)”。
获取元素与页面距离的方法(getBoundingClientRect)
猜你喜欢
转载自blog.csdn.net/hzxOnlineOk/article/details/85759742
今日推荐
周排行