首页 > 技术文章 > 通过添加类名实现样式的变化

yangxuanxuan 2019-07-02 10:13 原文

<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;}

 

推荐阅读