【发布时间】:2020-10-08 03:51:15
【问题描述】:
我的_main.less 文件中有以下样式
#mapid {
width: 100%;
min-height: min(65vh, 500px);
max-height: 500px;
}
但是 Less 编译器会抱怨(使用 grunt)
>> File "public/less/_main.less" changed.
Running "less:development" (less) task
>> ./public/less/_main.less: [L86:C14] error evaluating function `min`: incompatible types
Warning: Error compiling ./public/less/_main.less Use --force to continue.
Aborted due to warnings.
但这在 CSS (see docs) 中运行良好。
【问题讨论】: