简体   繁体   中英

Hack for IE9 compatibility mode

I have a website. Its one section looks the way i want in IE9 and in IE8 . But when IE9 compatibility mode is selected the look changes. How can i write a hack for that?

Short answer: don't use compatibility mode.

You can force IE not to use compat mode with the following line in the <head> section of your HTML code:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM