Reputation: 23
I want to make all the web pages in my web application to be compatible with the latest IE=Edge. Hence, I emulated my application using the IE developers tool and faced with a lot of broken CSS.
I understand this is common when we move a web page from quirks mode to standard mode. But, on debugging the js code, I came to understand the elements give back different offset values(offset width and offset height) in IE5 and IE edge respectively.
For eg-IE=5
<div id="menu1"> - offsetheight = 20, offsetwidth = 101
IE=Edge
<div id="menu1"> - offsetheight = 32, offsetwidth = 58
I need to obtain the same results when I emulate my application to IE Edge. Please let me know the reason for this behavior and a better solution to overcome the same. If possible, please suggest a method to obtain the same offset values in both the IE versions.
Upvotes: 0
Views: 118