2013-09-27 29 views
1

我有一個簡單的極小字符串,不會被解析。它適用於我使用lessPHP但不使用lesscss js的情況。LESS Interpolar string not parsed

li.nl a{background:url(/@{localImages}/icons/flags/gif/nl.gif) no-repeat center center;} 

變量:

@localImages:    "../images/local/"; 

返回:

.topbar #block-locale-language li.nl a { 
    background: url("/@{localImages}/icons/flags/gif/nl.gif") no-repeat scroll center center rgba(0, 0, 0, 0); 
} 

回答

4

更改這個...

background:url(~"@{localImages}icons/flags/gif/nl.gif") no-repeat center center; 

將會產生這樣的:

background: url(../images/local/icons/flags/gif/nl.gif) no-repeat center center; 
相關問題