When I try to use jQuery as follows: $ ('# myDiv'). css ('left')
In chrome, it returns 10%, which I expected, because I set the left value as 10%;
But in firefox, does it return a value in px? How can I get 10%?
thanks
So, I think that getting the same results from all browsers is better to return offset values.
source share