#每日bug 动态添加style样式 如果有多个 草莓千层蛋糕 2024-03-22 21 阅读1分钟 问题代码: <view :style="`height:${headerHeight}px;padding-top:${statusBarHeight}px`" class="title-bar" v-if="!loginStatus">空置表</view> 以数组的形式 一个变量一个对象 不能在一个对象里面写多个 :style="[{color:(number==0?fontColor:'#000')},{fontSize:'25px'}]"