为什么 SimpLESS 在后台 shorthand 中给出正斜杠符号的语法错误?

Why is SimpLESS giving syntax error on forward-slash symbol within the background shorthand?

为什么下面的中间行(第 2 行)会导致 SimpLESS 编译器出现语法错误? 在浏览器内编译期间,通过使用 CDN 没有问题。但是,由于某些原因,这似乎不适用于 Ipad。 所以我试图在上传之前编译代码以供 Ipad 使用。

.box1 {
    background: #000 url("../img/2.jpg") center top / cover;
}

删除正斜杠似乎可以阻止错误,但随后会影响输出。

background-size 指定为 shorthand 的一部分 background 是对 background 语法的相对较新的补充。

所以 SimpLESS CSS 解析器可能与这个较新的 background 语法不兼容。尝试在 background.

之后(之后)分别指定 background-size
.box1 {
    background: #000 url(../img/2.jpg) center top;
    background-size: cover;
}