IE9 html [lang] hack和LESS

时间:2015-09-19 07:36:25

标签: internet-explorer less less-mixins css-hack

我有一个带有规则集的LESS mixin来制作IE9-hack选择器:

.ie9(@rules) {
  html[lang='\
en'] & { @rules(); }
}

黑客来源:http://browserhacks.com/#hack-e6b158b7e27bcb157326348efb5c0bb2

但编译后我看到了:

SyntaxError: expected ']' got ''' in src/less/mixins.less on line 75, column 13:

74 .ie9(@rules) {
75   html[lang='\
76 ru'] & { @rules(); }

如何解决这个问题?

0 个答案:

没有答案