A
A
Akaero2018-02-26 13:33:41
JavaScript
Akaero, 2018-02-26 13:33:41

How does .offset() work in JQuery?

I study the positioning of elements on the page.

The question arose : how to find the coordinates of an element relative to the beginning of the document in JavaScript ?

JQuery has the .offset() function, for JS all the articles that I googled are quite different in approaches and old ones.

I would like to understand the most efficient cross-browser IE8+ algorithm.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-26
@Akaero

What prevents to open the source and see?
https://github.com/jquery/jquery/blob/master/src/o...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question