字符串函數-To-upper-case()、To-lower-case()

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;
}

results matching ""

    No results matching ""