【发布时间】:2013-02-01 08:53:30
【问题描述】:
我正在寻找某种 if 语句来控制不同 div 元素的 background-color。
我已经尝试了以下,但它没有编译
@debug: true;
header {
background-color: (yellow) when (@debug = true);
#title {
background-color: (orange) when (@debug = true);
}
}
article {
background-color: (red) when (@debug = true);
}
【问题讨论】:
-
你检查过文档吗?
标签: less