SCSS里如何自定义动态% @for $i from 0 through 100 { .w#{$i} { width: #{$i * 1%}; } } /* 元素不能中断显示 */ break-inside: avoid;