使用示例:
div:nth-child(n) { content: '#{$n}' }
div:nth-child(n) { background: rgb(#{$n},#{$n},#{$n}); }
$elements: 15; @for $i from 0 to $elements { div:nth-child(#{$i}) { background: rgb($i,$i,$i); } }