1、To-upper-case()
To-upper-case() 函數將字符串小寫字母轉換成大寫字母。如:
//SCSS
.test {
text: to-upper-case(aaaaa);
text: to-upper-case(aA-aAAA-aaa);
}
編譯出來的 css 代碼:
//CSS
.test {
text: AAAAA;
text: AA-AAAA-AAA;
}
2、To-lower-case()
To-lower-case() 函數 與 To-upper-case() 剛好相反,將字符串轉換成小寫字母:
//SCSS
.test {
text: to-lower-case(AAAAA);
text: to-lower-case(aA-aAAA-aaa);
}
編譯出來的 css 代碼:
//CSS
.test {
text: aaaaa;
text: aa-aaaa-aaa;
}
你可以寫出下面函數運行編譯出的CSS代碼嗎?
請驗證,完成請求
由于請求次數過多,請先驗證,完成再次請求
打開微信掃碼自動綁定
綁定后可得到
使用 Ctrl+D 可將課程添加到書簽
舉報