效果图如下
代码如下
<text class="tui-factory-price">¥{{ item.marketPrice }}</text>
css
.tui-factory-price {
font-size: 24rpx;
color: #a0a0a0;
text-decoration: line-through;
padding-left: 12rpx;
}
使用这个text-decoration:line-through
效果图如下
代码如下
<text class="tui-factory-price">¥{{ item.marketPrice }}</text>
css
.tui-factory-price {
font-size: 24rpx;
color: #a0a0a0;
text-decoration: line-through;
padding-left: 12rpx;
}
使用这个text-decoration:line-through