但是在Sass中可以通过 #{} 插值语句可以在选择器或属性名中使用变量:. $name: foo; $attr: border; p.#{$name} { #{$attr}-color: blue; }.
確定! 回上一頁