开发者

Detect and display IE8 to then display an existing IE8 css style sheet with MVC 3 Razor

开发者 https://www.devze.com 2023-03-12 22:33 出处:网络
I\'m converting a web forms application and in a code behind I see where a guy checked for IE8 browser, then displays that IE8 CSS.If I had the time I would figure out wh开发者_如何学运维at the differ

I'm converting a web forms application and in a code behind I see where a guy checked for IE8 browser, then displays that IE8 CSS. If I had the time I would figure out wh开发者_如何学运维at the differences are, but for now I'm thinking that I would just like a nice clean approach in mvc 3 razor to 1. check for which browser is used ( namely IE8 ) and then display the appropriate


You can use a conditional tag.

<!--[if IE 8]>
    <!-- include your ie8 stylesheet here -->
<![endif]-->
0

精彩评论

暂无评论...
验证码 换一张
取 消