-
-
Save khripunovpp/dc85191ff55c0b9ce688e384fb8df1f3 to your computer and use it in GitHub Desktop.
IE conditional stylesheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
/* IE10+ CSS */ | |
} | |
@supports (-ms-ime-align:auto) { | |
/* IE Edge 12+ CSS */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For IE 9 and lower, load a conditional stylesheet: | |
<!--[if IE]> | |
<link rel="stylesheet" type="text/css" href="ie.css" /> | |
<![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isIE = /*@cc_on!@*/false || !!document.documentMode; | |
var isEdge = /Edge\/\d./i.test(navigator.userAgent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if IE]> | |
style. | |
.instagram { | |
display: none | |
} | |
<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment