编程语言/getBoundingClientRect:修订间差异
来自康健生活
创建页面,内容为“== 引言 == == getBoundingClientRect == == 参考 == * https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect” |
|||
| 第1行: | 第1行: | ||
== 引言 == | == 引言 == | ||
== getBoundingClientRect == | == getBoundingClientRect == | ||
<blockquote><pre> | |||
Element.getBoundingClientRect() 方法返回元素的大小及其相对于视口的位置。</pre></blockquote> | |||
== 参考 == | == 参考 == | ||
* https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect | * https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect | ||