Vuejs怎么用:style绑定image-url:url(...)这种样式?
1 回答

眼眸繁星
TA贡献1873条经验 获得超9个赞
使用样式对象
<div v-bind:style="styleObject"></div>
data: { styleObject: { color: 'red', fontSize: '13px' } }
添加回答
举报
0/150
提交
取消