Why is the font size value in CSS returning incorrect values?
Check out this jsFiddle example
Here's the HTML code snippet:
<div id="test">TEXT</div>
<div id="test2">TEXT2</div>
Now, take a look at the CSS:
#test{
font-size: 38.5648887px;
}
#test2{
font-size: 38.564px;
}
And here's the jQuery script:
var a = $("#test").css('font-size');
var b = $("#test2").css('font-size');
alert("test = " + a + "\ntest2 = " + b); // test = 38.5667, test2 = 38.5667