0

cookielessドメインを変数に設定し、次のような背景画像に再利用したいと思います。

@static_url: "//static.example.com";
.background {background:url(@static_url/images/layout/sprite-icn.png) no-repeat;}

しかし、私のLESSコンパイラ(lesscss-engine-1.3.0.jar)は、これらの行のエラー原因をスローします。

4

1 に答える 1

0

解決策は次のとおりです。

@static_url: "//static.example.com";
.background {background:url("@{static_url}/images/layout/sprite-icn.png") no-repeat;}
于 2012-12-05T10:51:58.373 に答える