We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c814882 commit 30ec4d2Copy full SHA for 30ec4d2
2-ui/1-document/11-coordinates/article.md
@@ -146,7 +146,9 @@ elem.style.background = ''; // Error!
146
147
## 用于 "fixed" 定位
148
149
-为了显示元素附近的东西,我们可以使用 `getBoundingClientRect` 来获取其坐标,然后使用 CSS `position` 以及 `left/top`(或 `right/bottom`)。
+大多数时候,我们需要使用坐标来确定某些内容的位置。
150
+
151
+想要在某元素附近展示内容,我们可以使用 `getBoundingClientRect` 来获取这个元素的坐标,然后使用 CSS `position` 以及 `left/top`(或 `right/bottom`)。
152
153
例如,下面的函数 `createMessageUnder(elem, html)` 在 `elem` 下显示了消息:
154
0 commit comments