Vue3中CSS使用JS变量

Vue3中CSS使用JS变量

$符号 被 Sass 占用@符号 被 less 占用 因此CSS中采用了 -- JS: 可以看到var只是个声明变量的关键字,color才是变量名。 PHP: Scss:
html-css1030