4

これに対してコンパイルエラーが返されるため、LESS ドキュメントをコンパイルできません。

@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) { 

誰でもこれが起こっている理由を見ることができますか? コードにエラーは見られません。

アップデート

SimpLESS を使用してコンパイルしています。確認したところ、LESS 1.3.0 を使用しています。

4

1 に答える 1

6

これはバージョンの問題のようです。ここでさまざまなバージョンを確認すると、LESS 1.3.1 以降の問題はありません。ただし、1.3.0 の場合、次の 3 つのポイントで詰まるように見えます。

@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;}
}
于 2013-02-15T10:24:50.440 に答える