Firebug and Offset Calculations

Does anyone know if Firebug rounds the top and top offsets when they give us the panel below?

The reason I'm asking for is because I'm having problems using offsets that have decimals, and I wonder if Firebug overtakes or overlaps these values.

I tried to take a look at the source code, but could not determine where the offset calculations were made.

Any help was appreciated.

enter image description here

+5
source share
2 answers

According to the firebug source on SVN , the offset values ​​are parsed as integers . Also see this .

100%, Firebug , , , .

: CSS?

+5

. , . , , . - . , . , . 60 , - 20,5 . , .

JS, . , , JS offsetLeft offsetTop. , .

  • Firefox
  • Google Chrome Safari
+2

All Articles