Skip to content

Instantly share code, notes, and snippets.

@hoyangtsai
Created January 9, 2022 17:44
Show Gist options
  • Save hoyangtsai/10360291e9f3c932a624900202d6b580 to your computer and use it in GitHub Desktop.
Save hoyangtsai/10360291e9f3c932a624900202d6b580 to your computer and use it in GitHub Desktop.
#MediaQuery #CSSHack
/* target IE 6 and 7 */
@media screen\9 {
/* custom style */
}
/* target IE 6, 7 and 8 */
@media \0screen\,screen\9 {
/* custom style */
}
/* target IE8 */
@media \0screen {
/* custom style */
}
/* target IE 8, 9 and 10 */
@media screen\0 {
/* custom style */
}
/* target IE 9 and 10 */
@media screen and (min-width:0{{ content }}) {
/* custom style */
}
@hoyangtsai
Copy link
Author

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