class选择器 空格的使用
2020-04-20 本文已影响0人
考拉小姐咩
.wxml
<view class="shoplistItem add">
<view><image src="/images/carddetail_add.png"></image></view>
</view>
.wxss
.shoplistItem.add image {background-color: red;}
.wxml
<view class="shoplistItem add">
<view><image src="/images/carddetail_add.png"></image></view>
</view>
.wxss
.shoplistItem.add image {background-color: red;}