0
问题在标题中非常多。是否可以在sass中使用html属性?
我不知道这是可能的,似乎并不能使它工作,但我可能忽略了一些(我希望)
这是我的颜色选择功能混入的thingie
=colors($color)
@if #{$color} == 0
background: transparent
@if #{$color} == 1
background: #87dcec
@if #{$color} == 2
background: #72d856
@if #{$color} == 3
background: #f7e818
@if #{$color} == 4
background: #f75149
@if #{$color} == 5
background: #303030
@if #{$color} == 6
background: #fff1da
@if #{$color} == 7
background: #75430a
@if #{$color} == 8
background: #0e7259
这是我@for
@for $i from 1 through 143
li:nth-child(#{$i})
float: left
width: 50px
height: 50px
$color: #{attr(color)}
+colors($color)
所以,我的上海社会科学院已决定,如果的颜色,因为我甚至不使用8又是古怪只使用最后。
是的,我有一个名为color
喔,谢谢...但我不想要使用LESS,因为我想学SASS:D – Mobilpadde 2012-08-06 00:15:15