[class*='cat-image'] { position: relative; font-size: 0; object-fit: cover; overflow: hidden; background-color: #f2f2f2; } [class*='cat-price']::before { content: '¥'; font-size: .8em; } .cat-price-red { color: #e83318; } [class*='cat-qty']::before { content: '×'; font-size: .8em; } [class*='cat-tag'] { display: inline-flex; color: #fff; font-size: 24rpx; background-color: #45CC7E; border-radius: 5rpx; padding: 6rpx 10rpx; } .cat-tag-red { background-color: var(color-primary); } .cat-button-icon { display: flex; justify-content: center; align-items: center; background-color: transparent; padding: 0; &::after { content: none; } }