编程语言/less:修订间差异
来自康健生活
创建页面,内容为“== 引言 == == Logical Functions == === if === {{leftrightflex|<syntaxhighlight lang="less"> @some: foo; div { margin: if((2 > 1), 0, 3px); color: if((isc…” |
|||
| (未显示同一用户的1个中间版本) | |||
| 第2行: | 第2行: | ||
== Logical Functions == | == Logical Functions == | ||
=== if === | === if === | ||
{{ | {{hcdiff|head=if函数|output=<syntaxhighlight lang="less"> | ||
@some: foo; | @some: foo; | ||
| 第8行: | 第8行: | ||
margin: if((2 > 1), 0, 3px); | margin: if((2 > 1), 0, 3px); | ||
color: if((iscolor(@some)), @some, black); | color: if((iscolor(@some)), @some, black); | ||
}</syntaxhighlight>| | }</syntaxhighlight>|output2=<syntaxhighlight lang="css"> | ||
@some: foo; | @some: foo; | ||
| 第14行: | 第14行: | ||
margin: if((2 > 1), 0, 3px); | margin: if((2 > 1), 0, 3px); | ||
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] || 示例 || 示例 | |||
|} | |||