When I use jQuery to capture CSS values for objects, each of the browsers (IE, Mozilla, Chrome, etc.) returns different values.
For example, in Chrome, the background image (.css ("background-image")):
url(http:
Where in Mozilla returns:
url("http://i41.tinypic.com/f01zsy.jpg")
I have the same problem in other aspects, for example, in the size of the background.
In chrome, it returns:
50% 50%
But Mozilla returns:
50%+50%
My problem is that I have functions that share CSS (background size), for example based on .split ("") space, but this cannot work on Mozilla because + is used instead.
Is there a way to fix this problem and force browsers to use the same standard?
Is there any function I could write that captures and shares values based on the type of browser the user is using?
source share