-2
Ich habe dieses SCSS CodeWie Eigenschaftswert in CSS Schleife Klasse WENIGER
.order {
@for $i from 1 through 3 {
&--#{$i} { order: $i; }
}
}
, die in CSS
dazu kompiliert.order--1 {
order: 1;
}
.order--2 {
order: 2;
}
.order--3 {
order: 3;
}
Wie ich tun, um die gleiche Funktion in css WENIGER?
Duplikat eines von http: // Stackoverflow .com/Suche? Seite = 27 & tab = neueste & q =% 5bless% 5d% 20Loop. Und lies [die Dokumente] (http://lesscss.org/features/#loops-feature). –