如何在 less css 中使用 ie 9 hack?
ie 9 hack\0/
编译错误
以下字符是异常(exception)且未编码:,,/, ?, @, &, +, ', ~, !和 $.
如何对这些字符进行编码?
最佳答案
你不能......要么像@Blender建议的那样使用Modernizr,要么在你的标记中附加ie9类使用:
<!--[if IE 9]><script>document.documentElement.className += " ie9";</script><![endif]-->
并在 LESS 中使用 ie9 特定规则:
.ie9 & { /* IE9 rules */ }
关于css - 如何为 LESS CSS 应用 IE 修复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18286485/