HTML version of IE

Asked

Viewed 356 times

0

I’ve been looking at some codes on a website and I was wondering if it’s possible to do this Here any IE is emulated with 8

Now my question is: It is possible to create this code as follows. If you open the page with IE9 emulated with 8, If you open with 10 or 11 emulates with 10 or 11, If you open with 8 Emulates with 8

  • 1

    @rray I think he wants to know if you can give the user a page (created by you) when opening the page http://www.meusite.com if you can always emulate IE8 for example.

  • I want to emulate depending on what ie is using

1 answer

5


Since you want IE8, IE10 and IE11 to maintain their normal behavior, I believe the best thing to do is to place a conditional on IE9

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

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

EXTRA:

sometimes I want to add 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]-->
  • Normal. Sometimes it is not even to update the IE is to put a browser as it should be. Since the IE will be discontinued

Browser other questions tagged

You are not signed in. Login or sign up in order to post.