$color: #ff0000 #ffa500 #008000;
$name: red yellow green;
如何用@each 或者@for 输出成这样。
.red{background: #ff0000;}
.yellow{background: #ffa500;}
.green{background: #008000;}
$color: #ff0000 #ffa500 #008000;
$name: red yellow green;
如何用@each 或者@for 输出成这样。
.red{background: #ff0000;}
.yellow{background: #ffa500;}
.green{background: #008000;}
2 回答1.2k 阅读✓ 已解决
1 回答2.2k 阅读
1 回答606 阅读✓ 已解决