通过添加类名实现样式的变化

<div class="z-shebei-box1 x-mysh-p" v-for="item in deviceList" :class="{'bgActive':item.remind == 'false'}" style=" 100%;"><div>

css样式

.bgActive{background: #ffe4aa;}
原文地址:https://www.cnblogs.com/yangxuanxuan/p/11118868.html