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

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

css样式

.bgActive{background: #ffe4aa;}

 

posted @ 2019-07-02 10:13  杨煊煊  阅读(356)  评论(0编辑  收藏  举报