Offset (.Left) specific differences and offsetLeft properties

We all know about the two attributes can be associated coordinates
But, what is the difference between the obtained, by what principle, can explain not, thank you!

Started by Debra at February 01, 2016 - 3:01 AM

$('#id').offset().left;Relative coordinate access to the unique ID,
$('#id')[0].offsetLeft, Gets the id not only label the first array of relevant coordinate,

Posted by Nina at December 11, 2016 - 11:05 PM

Oh, this I know, want to look at the offset (.Left) specific differences and offsetLeft properties, the difference from the aspects of the principle of.

Posted by Debra at December 23, 2016 - 11:51 PM

See offset (source code)

Posted by Jeff at January 01, 2017 - 2:09 AM

offset() Get the element (HTML element) from the pixel document edge, the left edge, and windows.,
OffsetLeft is set if the orientation of non STATIC elements, it is relative to their position! But should notice is not completely positioning distance, but the objects around offsetWidth, that is to add the left margin distance!

Posted by Nina at January 02, 2017 - 12:47 AM

How to look, recommended websites or something, let us learn, thanks

Posted by Debra at January 04, 2017 - 1:09 AM

A bit around, ha ha... Can provide corresponding reference data, or to illustrate what not, thank you

Posted by Debra at January 08, 2017 - 2:24 AM

Are you using the jQuery code
JQuery JS file is not in your hands
To see what the non compressed jqery JS file (file name without min)

Search jQuery.fn.offset you look at how he wrote

Posted by Jeff at January 12, 2017 - 1:23 AM