编程语言/getBoundingClientRect

来自康健生活

引言

getBoundingClientRect

Element.getBoundingClientRect() 方法返回元素的大小及其相对于视口的位置。

参考