其實我很納悶的是percentage()函數 將一個不帶單位的數轉換成百分比值; 我直接在數值后面加一個%不就好了嘛 敲那么多次鍵盤不累嗎?
2017-07-22
type-of(null) => null
type-of(a b c) => list
type-of((a: 1, b: 2)) => map
type-of(get-function("foo")) => function
type-of(a b c) => list
type-of((a: 1, b: 2)) => map
type-of(get-function("foo")) => function
2017-07-22
Sass 3.4.0 changelog:
index() now returns null rather than false if the value isn't found in the list.
也就是說3.4.0開始如果沒有找到返回null,而不是false
index() now returns null rather than false if the value isn't found in the list.
也就是說3.4.0開始如果沒有找到返回null,而不是false
2017-07-22
遇到問題要學會搜索。以下是min(), max()接受list的方法。
//SCSS
$list: (6,50,45,3,55,10,23);
td {width: max($list...) + "px"; height: min($list...) + "px";}
//css
td {
width: "55px";
height: "3px"; }
//SCSS
$list: (6,50,45,3,55,10,23);
td {width: max($list...) + "px"; height: min($list...) + "px";}
//css
td {
width: "55px";
height: "3px"; }
2017-07-22
DEPRECATION WARNING: Passing Hello Sass, a non-string value, to unquot
e()
will be an error in future versions of Sass.
on line 14 of test.scss
e()
will be an error in future versions of Sass.
on line 14 of test.scss
2017-07-22
through:prep.通過,穿過; 經由; 透過; 憑借
adv.從頭到尾; 徹底; 自始至終;
adj.(電話)接通; 通話完畢; 有洞的; 直達的
to:prep.向,朝著; 到; 關于; 屬于
adv.朝一個方向的; 到某種狀態; 關閉;
當<start>大于<end>時,計數器將遞減而不是遞增。
adv.從頭到尾; 徹底; 自始至終;
adj.(電話)接通; 通話完畢; 有洞的; 直達的
to:prep.向,朝著; 到; 關于; 屬于
adv.朝一個方向的; 到某種狀態; 關閉;
當<start>大于<end>時,計數器將遞減而不是遞增。
2017-07-22
已采納回答 / 猥瑣的沉沉
如果$social-colors為list一個參數即可,$social-colors為map時兩個參數分別是key,value
已采納回答 / 猥瑣的沉沉
map是map,數組是數組,這兩概念先搞清楚,map是key,value結構,數組是[value...]鏈狀結構,這里是一個雙層map結構,要獲取bgcolor先通過$theme:map-get($theme-color,default)獲取里層map,再通過同樣的方式map-get($theme,bgcolor)獲取到bgcolor的值,由于sass不支持函數內再嵌套函數所以只能使用類似.hhh{? $theme: map-get($theme-color,default)? color: map-ge...
2017-07-21