#willULoveMe {sayYes: comparable(2px,1px); sayNo: comparable(2px,1em);}
2016-08-15
嗯哼,keywords沒太懂,大約得回頭再來看這個知識點了。。。
max() 和 min()不能傳list進去?
$list: (6,50,45,3,55,10,23);
td {width: max($list) + "px"; height: min($list) + "px";}
這么寫會報錯:
Error: (6, 50, 45, 3, 55, 10, 23) is not a number for `max'
$list: (6,50,45,3,55,10,23);
td {width: max($list) + "px"; height: min($list) + "px";}
這么寫會報錯:
Error: (6, 50, 45, 3, 55, 10, 23) is not a number for `max'
2016-08-15
@each $social-network,$social-color in $social-colors {
.btn-#{$social-network} {
color: $social-color;
}
}
最后的方法換成這樣更為簡單,不需要使用colors函數。
$each key,value in $social-colors
.btn-#{$social-network} {
color: $social-color;
}
}
最后的方法換成這樣更為簡單,不需要使用colors函數。
$each key,value in $social-colors
2016-08-15
quote("something here") 還是"something here"
unquote(nothing there) 還是 nothing there
單引號、雙引號都一樣
你不能給開頭加了引號的字符串再加開頭引號,也不能給開頭沒有引號的字符串去掉開頭引號。
unquote(nothing there) 還是 nothing there
單引號、雙引號都一樣
你不能給開頭加了引號的字符串再加開頭引號,也不能給開頭沒有引號的字符串去掉開頭引號。
2016-08-15
我的理解:
for $i from 1 through 3 相當于JavaScript的 for (var i = 1; i <= 3; i++)
for $i from 1 to 3 相當于JavaScript的 for (var i = 1; i < 3; i++)
through有等號,to沒有等號
for $i from 1 through 3 相當于JavaScript的 for (var i = 1; i <= 3; i++)
for $i from 1 to 3 相當于JavaScript的 for (var i = 1; i < 3; i++)
through有等號,to沒有等號
2016-08-15