首页 > 其他分享 >Element.getBoundingClientRect()

Element.getBoundingClientRect()

时间:2023-03-29 16:55:06浏览次数:60  
标签:Web zh getBoundingClientRect Element 于视口 developer

Element.getBoundingClientRect() 方法返回一个 DOMRect 对象,其提供了元素的大小及其相对于视口的位置。

参考:

https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect

标签:Web,zh,getBoundingClientRect,Element,于视口,developer
From: https://www.cnblogs.com/xuwupiaomiao/p/17269533.html

相关文章