javascript - Different width result in different browser $("#div1").width()? -
I am using jquery to set the width of the control: -
$ ("# Div1") width () .;
There is a difference between the width of IE8 (Compatibility View) and Firefox. The width is not the same.
For example: 1887 FF: 18 9
How to deal with it?
I think the differences in the browser's display are due to their different assumptions of the CSS box model is. IE Firefox interprets in other ways (for example, padding
property is treated differently).
Comments
Post a Comment