<style type='text/scss'>
@for $i from 1 through 6 {
.text-#{$i} {
font-size: 15*$i
}
}
</style>
<p class="text-1">Hello</p>
<p class="text-2">Hello</p>
<p class="text-3">Hello</p>
<p class="text-4">Hello</p>
<p class="text-5">Hello</p>
你的.text-1类应该有font-size15px。
你的.text-2类应该有font-size30px。
你的.text-3类应该有font-size45px。
你的.text-4类应该有font-size60px。
你的.text-5应该有一个font-size75 像素