en.javascript.info/2-ui/1-document/11-coordinates/2-position-at/solution.md
Ilya Kantor 508969c13f up
2017-02-28 12:54:48 +03:00

259 B

In this task we only need to accuracely calculate the coorindates. 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.