2012-04-23 42 views

回答

17

支持加入less.js和帶點版本1.3

你必須使用括號和轉義字符串..例如

(~"[email protected]{scope} .another") { 
    color: #fff; 
} 

編輯

這種格式已經過時了。 1.3.1少(目前只有軀幹less.js的版本)支持簡單的語法

[email protected]{scope} .another-class { 
    color: white; 
} 
+0

您可能必須把整個選擇內引號,我不記得了。 – 2012-04-23 13:19:51

+0

你的代碼片段工作正常 – 2012-04-23 13:21:36

+0

很好的工作,請務必更新到LessApp 2.7(它不適用於2.6) – 2012-05-09 20:18:13

2

嘗試下面的代碼,以獲得預期的輸出

@scope: name;//line1 
(~"[email protected]{scope} .ui-widget") { color: #ffbbff} //line2