How to force IE11 in html to use IE9 css styles.
I used this code
<script runat="server">
private void Page_PreRender(object sender, EventArgs e)
{
var meta = new HtmlMeta();
meta.Content = "IE=EmulateIE9";
meta.HttpEquiv = "X-UA-Compatible";
this.Page.Header.Controls.AddAt(0, meta);
}
</script>
or
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
To get the same stylres when is internet explorer for all versions, taking ie9 as standard.
I am doing this code:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="~/App_Themes/CocktailSite/master-interno-ie.css" media="screen" />
<!--[else]>
<link rel="stylesheet" type="text/css" href="~/App_Themes/CocktailSite/master-interno.css" media="screen" />
<![endif]-->
it is working when is IE9 and take master-interno-ie.css but in IE11 takes master-interno.
I was wahching all answer here and not worked in my case.