Using different stylesheets for IE10 and IE11

Besides javascript, is there any other way to use a different style for the web application in IE10 and IE11?

+3
source share
3 answers

Per MSDN :

It is important . As with Internet Explorer 10, conditional comments are no longer supported in standard mode. Use feature detection to provide effective return strategies for website features that are not supported by the browser.

@yglodt you cannot distinguish 10 and 11 from support with 10 failures.

Look at a fallback strategy, not very impressed - you check the availability of opportunities.

(JavaScript, PHP, Python ..) . , .

+2

, :

IE10, IE10:

<!doctype html>
<!--[if IE 7 ]><html lang="en" class="ie7"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="ie8"><![endif]-->
<!--[if IE 9 ]><html lang="en" class="ie9"><![endif]-->
<!--[if !IE]><!-->
<script>if(/*@cc_on!@*/false){document.documentElement.className+=' ie10';}</script>
<!--<![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->

- @datamafia.

.ie10 CSS IE10, IE11 (IE11 CSS)

0

html. : http://msdn.microsoft.com/en-us/library/ms537512.ASPX

Edit:

, IE11 ... .

Otoh, , IE, .

-1

All Articles