Judge not from appearances.
编写Less时使用calc:1width: calc(100% - 30px);
1
width: calc(100% - 30px);
会被编译成:1width: calc(100%);
width: calc(100%);
写为如下形式可解决:1width: calc(~"100% - 30px");
width: calc(~"100% - 30px");
如写入变量:123456@a: 30px;width: calc(~"100% - " + @a);或width: calc(~"100% - " @a);或width: calc(~"100% - @{a}");
123456
@a: 30px;width: calc(~"100% - " + @a);或width: calc(~"100% - " @a);或width: calc(~"100% - @{a}");