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

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

 

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

 

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