scss开发记录
2023-09-12 本文已影响0人
吴小冷
SCSS里如何自定义动态%
@for $i from 0 through 100 {
.w#{$i} {
width: #{$i * 1%};
}
}
/* 元素不能中断显示 */
break-inside: avoid;
@for $i from 0 through 100 {
.w#{$i} {
width: #{$i * 1%};
}
}
/* 元素不能中断显示 */
break-inside: avoid;