这段代码由于某种原因破坏了我的SASS流程。
@for $i from 1 through 100 { .t-#{$i} { top: #{$i}%; } }
您可以更改为:
@for $i from 1 through 100 { .t-#{$i} { top: 1% * $i } }
从SASS文档:
这是一个例子
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句