编程语言/less:修订间差异
来自康健生活
< 编程语言
| 第15行: | 第15行: | ||
color: if((iscolor(@some)), @some, black); | color: if((iscolor(@some)), @some, black); | ||
}</syntaxhighlight>}} | }</syntaxhighlight>}} | ||
== 工具 == | |||
{| class="wikitable" | |||
|- | |||
| [https://www.dute.org/less-to-css less-to-css] || 示例 || 示例 | |||
|} | |||
2022年8月2日 (二) 08:24的最新版本
引言
Logical Functions
if
if函数
@some: foo;
div {
margin: if((2 > 1), 0, 3px);
color: if((iscolor(@some)), @some, black);
}
@some: foo;
div {
margin: if((2 > 1), 0, 3px);
color: if((iscolor(@some)), @some, black);
}
工具
| less-to-css | 示例 | 示例 |
No categories