编程语言/getBoundingClientRect:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第7行: 第7行:


[[文件:GetBoundingClientRect.png|600px|getBoundingClientRect]]
[[文件:GetBoundingClientRect.png|600px|getBoundingClientRect]]
==== bottom ====
是距离视窗(浏览器标签窗口,并不是页面最顶部)的距离


== 参考 ==
== 参考 ==
* https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
* https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect