文字列にクォーテーションを付ける
文字列にクォーテーションを付けるには、quote
関数を使用します。
構文
quote(文字列)
サンプルコード
SCSS
$str : abcdefg; .sample::before { content :quote( $str ); } |
コンパイル後:CSS
.sample::before { content : "abcdefg" ; } |
文字列にクォーテーションを付けるには、quote
関数を使用します。
quote(文字列)
SCSS
$str : abcdefg; .sample::before { content :quote( $str ); } |
コンパイル後:CSS
.sample::before { content : "abcdefg" ; } |