diff --git a/src/App.vue b/src/App.vue index 63f5cee..ccaab86 100644 --- a/src/App.vue +++ b/src/App.vue @@ -46,4 +46,11 @@ height: 100%; } } + + // 通过伪元素处理符号 + .price::before { + content: "¥"; + font-size: 100%; + margin-right: 3rpx; + } diff --git a/src/pages/goods_detail/goods_detail.vue b/src/pages/goods_detail/goods_detail.vue index fd58ba7..1bab555 100644 --- a/src/pages/goods_detail/goods_detail.vue +++ b/src/pages/goods_detail/goods_detail.vue @@ -179,12 +179,6 @@ export default { flex: 1; font-size: 36rpx; color: #eb4450; - // 通过伪元素处理符号 - &::before { - content: "¥"; - font-size: 80%; - margin-right: 3rpx; - } } .iconfont {