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]-->
精彩评论