Vue.js style(内联样式)
我们可以在 v-bind:style 直接设置样式:
<div id="app"> <div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }">Hello word!</div> </div>
我们可以在 v-bind:style 直接设置样式:
转载于:https://www.cnblogs.com/alvin553819/p/7454772.html