给style里面的样式进行动态绑定

<div :style="{backgroundColor:item.color}"></div>

 

:style="{ backgroundImage: 'url(' + item.storeThumbnail + ')' }"

 

posted on 2021-01-16 22:29  稳住别慌  阅读(807)  评论(0)    收藏  举报