Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force IE9 to render in IE9 Document Mode?

My website does not display well on IE7. But I don't worry about this anyway. But IE9 users are saying that they can't see things well on their browsers too. When I click F12 and check their browsers, their IE9s are rendering in IE7 Document Mode. If I change to IE9 Document Mode it works perfect.

So I wonder, is there a way to force IE9 to render in IE9 document mode by putting some extra code or something. Those extra code should not affect other users with IE8 using the website.

Thanks.

like image 879
Laurence Avatar asked May 31 '12 09:05

Laurence


1 Answers

I think you need "edge" mode.

Check this out:

  <html>
   <head>
      <title>My Web Page</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
   </head>
   <body>
      <p>Content goes here.</p>
   </body>
  </html>
like image 182
Mennan Avatar answered Oct 18 '22 08:10

Mennan