html
<div class="test" :style="{ '--backgroundColor': backgroundColor }"></div>
js
css
.test { background-color: var(--backgroundColor); }
标签:vue,变量,color,js,var,css From: https://www.cnblogs.com/cynthia-wuqian/p/17786672.html
html
<div class="test" :style="{ '--backgroundColor': backgroundColor }"></div>
js
css
.test { background-color: var(--backgroundColor); }
标签:vue,变量,color,js,var,css From: https://www.cnblogs.com/cynthia-wuqian/p/17786672.html