IE9/IE10 Media Query Version Targeting - IE (Internet Explorer) | UA - User Agents
Standards Based Development
Targeting ie9 and ie10 via media queries; the following example uses a technique that will only affect ie9/ie10 css:
This text should be #c0c0c0 color in ie9 and ie10, #000 otherwise.
css
#test{color:#000}
@media all and (min-width:0) {
#test { color:#c0c0c0 \0/; } /* IE9-IE10pp4 */
}
html
<p id="test">This text should be <code>#c0c0c0</code> color in <abbr>ie9</abbr> and <abbr>ie10</abbr>, <code>#000</code> otherwise.</p>