首页 新闻 赞助 找找看
2
回答数

回答被采纳 50 vue里用v-for循环出来的图片在:style重新赋值backgroundPosition的值

<li v-for="(item, index) in demoList" :key="index"> <span :style="{backgroundImage: 'url(' + item.bg