Created
January 8, 2015 12:41
-
-
Save owzim/92d3df43128eda7c0c93 to your computer and use it in GitHub Desktop.
fix: ie8 icon font
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
| (function() { | |
| // icon font rendering fix | |
| // see: http://stackoverflow.com/a/10557782/426890 | |
| var head = document.getElementsByTagName('head')[0], | |
| style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.styleSheet.cssText = ':before,:after{content:none !important'; | |
| head.appendChild(style); | |
| setTimeout(function(){ | |
| head.removeChild(style); | |
| }, 0); | |
| })(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment