$imgName: 'aa' 'bb' 'cc'
$imgPre: '../img/'
@for $i from 1 through 3
.cate-#{$i} .imgw
background: url(#{$imgPre}nth($imgName,$i)) no-repeat center
想要在url里拼出 ‘../img/aa’ '../img/bb'
语法好像有点不对,求解!
$imgName: 'aa' 'bb' 'cc'
$imgPre: '../img/'
@for $i from 1 through 3
.cate-#{$i} .imgw
background: url(#{$imgPre}nth($imgName,$i)) no-repeat center
想要在url里拼出 ‘../img/aa’ '../img/bb'
语法好像有点不对,求解!
2 回答983 阅读✓ 已解决
1 回答2.1k 阅读
1 回答1k 阅读
.SCSS格式
被编译为:
.SASS格式
被编译为: