Using IE conditional comments inside a stylesheet
问题 I know that you can use an IE conditional comment inside HTML: <!--[if IE]> <link href="ieOnlyStylesheet.css" /> <![endif]--> But what if I want to target only IE in a stylesheet , setting up a css rule for a specific element inside the html. For example, you can use this Chrome/Safari hack inside the css file as css code... @media screen and (-webkit-min-device-pixel-ratio:0) { .myClass{ background: #fff; background:rgba(255,0,255,0.7); } } But using the IE hack inside the CSS stylesheet