Is there a way to force IE8 into IE7 compatibility mode using .NET or Javascript?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Is TWebBrowser dependant on IE version?
- Javascript does not work in IE8
- IE dropdown z-index bug
- Multiple cookies with same name
相关文章
A note to this:
IE 8.0s emulation only promises to display the page the same. There are subtle differences that might cause functionality to break. I recently had a problem with just that. Where IE 7.0 uses a javascript wrapper-function called "anonymous()" in IE 8.0 the wrapper was named differently.
So do not expect things like JavaScript to "just work", because you turn on emulation.
I might have found it now. http://blog.lroot.com/articles/the-ie7-compatibility-tag-force-ie8-to-use-the-ie7-rendering-mode/
The site says adding this meta tag:
or adding this to .htaccess
If you add this to your meta tags:
IE8 will render the page like IE7.