My project support IE8 to IE10. We try to use standard code and support Standard Mode for all IE Versions.
We use the following to force IE to open in the latest mode:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
But for some case we need to force IE to open site in Compatibility mode. Like when user opens the site in IE10, it should open in IE10 Compatibility mode. When user open site in IE9, it should open in IE9 comptibility and so on for IE8.
Is this even possible to force compatibility mode or we can only force the document mode and not the browser's compatibility mode?
If its possible, is it possible to have a generic statement for all IE versions and not IE version specific syntax like given in post linked when it fores IE8 to IE7 Emulation: Force IE8 Into IE7 Compatiblity Mode