【发布时间】:2012-04-11 23:36:09
【问题描述】:
我正在尝试使用插值 (Saas 3) 访问属性,但出现错误。
@each $icons in myPic1, myPic2 {
[data-type=#{$icons}] span {
background: url("/path/to/#{$buttons}.png") no-repeat scroll 50% 50%;}
}
执行错误:错误:命令失败:(sass):96:“... [data-type=": 预期的标识符或字符串,为 "#{$icons}] span {" (Sass: :SyntaxError)
在这种情况下我如何访问属性?
【问题讨论】: