From 92d8bbbfcd4db878c4c2cd4de1ee60ec64cffc56 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Sat, 27 Feb 2021 22:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E7=AC=A6=E5=8F=B7=E4=BC=AA?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E6=A0=B7=E5=BC=8F=E6=8F=90=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 7 +++++++ src/pages/goods_detail/goods_detail.vue | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) 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 {