html - How can I programmatically disable IE compatibility mode? -


i have been stuck on 1 while - couldn't figure out why website renders differently in 2 identical versions of internet explorer. half hour ago came across compatibility mode button in ie made me angry.

disabling compatibility mode has fixed problem.

is there way disable programmatically, i.e. web page?

edit:

just came across blog https://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx

i'll post example code after reading article

if want "old" rendering, , no button show on toolbar users can switch modes can use this:

<head>   <!-- mimic internet explorer 7 -->   <meta http-equiv="x-ua-compatible" content="ie=emulateie7" >   <title>my web page</title> </head> 

other options (old , new) include:ie=5, ie=7, ie=8, or ie=edge

(edge equals highest mode available)


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -