怎么会报错?
$col-width: 60px; $col-gap: 20px; @for $i from 1 through 12 { .col-#{$i}{ width:$col-width * $i + $col-gap*($i-1); } } 这样写为什么报错? Error: Undefined variable: "$i-1". on line 6 of ./7731/BZ1C/index.scss Use --trace for backtrace.
$col-width: 60px; $col-gap: 20px; @for $i from 1 through 12 { .col-#{$i}{ width:$col-width * $i + $col-gap*($i-1); } } 这样写为什么报错? Error: Undefined variable: "$i-1". on line 6 of ./7731/BZ1C/index.scss Use --trace for backtrace.
2016-01-12
举报