Element.getBoundingClientRect() 方法返回元素的大小及其相对于视口的位置。 hahaha222 2020-03-24 370 阅读1分钟 developer.mozilla.org/zh-CN/docs/…