下面是来自SASS文件的一个示例
@each $animal, $color, $cursor in (puma, black, default),
(sea-slug, blue, pointer),
(egret, white, move) {
.#{$animal}-icon {
background-image: url('/images/#{$animal}.png');
border: 2px solid $color;
cursor: $cursor;
}
}由于某些原因,它引发以下错误:
错误sass/屏幕.sass(第8行:“@各$animal”之后的CSS无效):预期“in,was ",$color,$curs.)
我试着卸载和重新安装ruby/sass/罗盘,但没有结果。怎么回事?以下是我的版本:
发布于 2014-04-11 15:17:04
看起来多个赋值是SASS3.3的特性。也许这会帮上忙。
https://stackoverflow.com/questions/23016269
复制相似问题