Html version of IE

0

I've seen some codes on a site and I wonder if it's possible to do this Here any IE gets emulated with the 8     

Now my doubt is: You can create this code as follows. If the user opens the page with IE9 emulated with 8, If open with 10 or 11 emulates with 10 or 11, If open with 8 Emulates with 8

    
asked by anonymous 24.03.2015 / 12:38

1 answer

5

As you want IE8, IE10 and IE11 to maintain their normal behavior, I believe the best thing to do is to put a conditional for IE9

<!--[if IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<![endif]-->

Remembering that you can add conditions to check the version of IE up to IE9. From IE10 this check is ignored (as well as the content).

EXTRA:

Sometimes I feel like adding the following code snippet:

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if IE]>
    <script type="text/javascript">
        alert('Para continuar atualize o seu IE!');
        window.location.href = 'http://windows.microsoft.com/pt-br/internet-explorer/download-ie';
    </script>
<![endif]-->
    
24.03.2015 / 13:32