sass 循环
/*padding*/
@for $i from 1 through 300 {
.pd_tp_#{$i} {
padding-top: rem($i);
}
.pd_bt_#{$i} {
padding-bottom: rem($i);
}
.pd_rt_#{$i} {
padding-right: rem($i);
}
.pd_lf_#{$i} {
padding-left: rem($i);
}
}
/*line height*/
@for $i from 1 through 100 {
.line_height_#{$i} {
line-height: rem($i);
}
}
/*font size*/
@for $i from 1 through 100 {
.fs_#{$i} {
font-size: rem($i)
}
}