Skip to content

Instantly share code, notes, and snippets.

@lunaluna
Created March 24, 2020 03:05
Show Gist options
  • Save lunaluna/e4bef31e7d339a3606e66127005fc5ee to your computer and use it in GitHub Desktop.
Save lunaluna/e4bef31e7d339a3606e66127005fc5ee to your computer and use it in GitHub Desktop.
【IE11】CSS hack
@media all and (-ms-high-contrast:none){
.foo { color: green } /* IE10 */
}
@media all and (-ms-high-contrast:none){
*::-ms-backdrop, .foo { color: red } /* IE11 */
}
@lunaluna
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment