SCSS-循环 _未完待续 2021-09-16 382 阅读1分钟 $colors: red yellow blue; .wrap{ p{ @for $i from 1 through 3{ &:nth-child(#{$i}){ color: nth($colors, $i) } } } }