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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -