Trigger hasLayout for IE
<!--[if IE]><style>
.layout {
height: 0;
he\ight: auto;
zoom: 1;
}
</style><![endif]-->
<!--[if IE]><style>
.layout {
height: 0;
he\ight: auto;
zoom: 1;
}
</style><![endif]-->
Define your doctype in your HTML:
<!DOCTYPE> element
See: https://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
This prevents, for example, IE 11 from using IE 7 rendering mode which can happen for many reasons.
If you can’t add an HTTP header, then add this to your HTML and pray that it helps:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
IE is using a compatibility mode if you see “compatible; MSIE” in the user agent header:
"Mozilla/4.0 (compatible; MSIE 7.0;"
See:
Try “zoom” or “!important”.