0
此代码LESS:语法错误:错误评估函数`lighten`:a.toHSL不是一个函数
.test { color : lighten(red, 10%); }
是好的,但
@color : red ;
.test { color : lighten(@color, 10%); }
结果
SyntaxError: error evaluating function
lighten
: a.toHSL is not a function
(http://less2css.org/#%7B%22less%22%3A%22%40color% 3A%20red%3B%5CN%5Cn.test%20%7B%20color%20%3A%20lighten(%20%40color%2C%2010%25%20)%3B%20%7D%22%7D)。实际代码中是否缺少结束符“}”,或者是复制粘贴错误? –