摘要: 同级切换类名 代码: <ul> <li v-for="(item,index) in items" :key="item.id" :class="{active:id==index}" @click="clickSwitch(index)"> {{ item.title }} </li> </ul> 阅读全文
posted @ 2021-04-29 16:26 馬騳驫驷 阅读(927) 评论(0) 推荐(1)
摘要: 错误写法: background: red; opacity: 0.5; 导致内部元素也变成透明的了 正确写法: background: rgba(255,0,0,0.5); 阅读全文
posted @ 2021-04-08 13:43 馬騳驫驷 阅读(863) 评论(0) 推荐(0)