internet-explorercross-browserie8-compatibility-mode

force the user's ie8 compatibility mode


Is it possible to force the client's IE8 to not be in Compatibility mode? I have a site where it looks good in compatibility mode, but of course not as good as IE8 - not to mention newer browsers. As I think about it, I believe it would not be possible, since it's the system setting, but maybe someone was struggling with that one before.

Thank you


Solution

  • The whole msdn site gives very good description of compatibility modes.

    I suggest reading the information provided there as this will give you deeper understanding the topic, but if you want short answer, different modes are defined like this:

    <meta http-equiv="X-UA-Compatible" content="IE=4">   <!-- IE5 mode -->
    <meta http-equiv="X-UA-Compatible" content="IE=7.5" > <!-- IE7 mode -->
    <meta http-equiv="X-UA-Compatible" content="IE=100" > <!-- IE9 mode -->
    <meta http-equiv="X-UA-Compatible" content="IE=a" >   <!-- IE5 mode --> 
    
    <!-- This header mimics Internet Explorer 7 and uses 
         <!doctype> to determine how to display the webpage -->
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >