en.javascript.info/2-ui/1-document/11-coordinates/2-position-at/solution.md
2018-10-04 12:46:33 +08:00

4 lines
259 B
Markdown

In this task we only need to accurately calculate the coordinates. See the code for details.
Please note: the elements must be in the document to read `offsetHeight` and other properties.
A hidden (`display:none`) or out of the document element has no size.