A
A
Alexander Ivanov2018-03-02 12:24:10
JavaScript
Alexander Ivanov, 2018-03-02 12:24:10

How to get the height from the edge of the divs to the beginning of the document?

5a9917a328e77458696522.png
I tried to watch these https://learn.javascript.ru/coordinates-document and these https://learn.javascript.ru/metrics materials but so far I don’t see an obvious way out
theoretically there is also this option
shpargalkablog.ru/2013/09/scroll -block.html
but I understand that I need to do this myself, since it will be possible to implement it more successfully than if I just copy

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-03-02
@cimonlebedev

and this option does not show correctly? https://jsfiddle.net/42x0uvod/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question