我想用sass生成nthchild
并有问题
@for $i from 0 through 10 {
div {
content: $i + 1;
}
}
它生成以下内容:1、2、3、4、5、6、7、8、9、10;
我需要以下结果:2、4、6、8、10
有任何想法吗?
尝试这个
@for $i from 1 through 5 {
div {
content: $i * 2;
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句