换成class选择器

This commit is contained in:
shijingjing
2023-03-15 15:38:43 +08:00
parent a3e1694d4f
commit bd03d5b95e
2 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
<scroll-view :style="{height: height + 'px'}" scroll-y>
<div class="card" v-for="item in classList" :key="item.id" @click="handleToDetail(item.id)">
<div class="card_left">
<img :src="item.pictureUrl" alt="">
<img :src="item.pictureUrl" alt="" class="card-img">
</div>
<div class="card_right">
<div class="title">{{ item.title }}</div>
@@ -98,7 +98,7 @@ export default {
box-sizing: border-box;
.card_left {
margin-right: 24px;
img {
.card-img {
width: 160px;
height: 160px;
border-radius: 8px;