问题
My website design is looking fine in Mozilla. But when I try to run in IE, the design is not looking fine. When the compatibility view from Tools option in menu of IE is unchecked, the design is looking fine. But by default the compatability view is checked.
Can by default can we uncheck the compatability view or is their any other problem?
回答1:
Even if you are viewing the website by yourself without using the Compatibility view in IE8, other users are still going to be viewing the website in IE6/7 and other browsers.
It would be best to fix the problems that are causing the design faults so that you are not working around the problem.
If you post your html markup/css that seems to be the issue, I am sure there are many people here who can help.
回答2:
Yes. The relevant document describing "Compatibility View" is the Internet Explorer 8 Readiness Toolkit
回答3:
The meta tag solution would be a good temp fix until the real cause could be sorted out. However the meta tag doesn't really allow you to control which mode the browser operates in. It seems to simply remove the click-able icon from the browser.
回答4:
According to Force IE8 Into IE7 Compatiblity Mode , you can add the following tag to make IE8 render as IE7:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
But I think that is is better that you cleanup your HTML so it works correctly in both IE7 and IE8.
来源:https://stackoverflow.com/questions/3759731/internet-explorers-compatibility-view-breaks-my-site-design