LESS编译错误视网膜媒体查询 [英] LESS compile error on retina media query
本文介绍了LESS编译错误视网膜媒体查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法编译我的LESS文件,因为它为此返回一个编译错误:
I am unable to compile my LESS document because its returning a compile error on for this:
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
任何人都能看到发生这种情况的原因吗?我无法在代码中看到任何错误。
Can anyone see any reason this is happening? I can't see any errors in the code.
更新:
我使用SimpLESS编译。我只是检查,它使用LESS 1.3.0。
I am using SimpLESS to compile. I just checked and it uses LESS 1.3.0.
推荐答案
这似乎是一个版本问题。在各种版本此处上选中时,它在LESS 1.3.1中具有 无问题 +。但是,对于1.3.0,它似乎阻塞在三个点:
This appears to be a version issue. When checked on the various versions here, it has no issues from LESS 1.3.1+. However, for 1.3.0 it appears to choke at three points:
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1), //<-HERE on the 2/1
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi), //<-HERE on the dpi
only screen and (min-resolution: 2dppx) //<-HERE on the dppx
{
.test { color: red;}
}
这篇关于LESS编译错误视网膜媒体查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文