From 2ba43a28d2b2c2a48311cfab709306505a918a58 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Sat, 27 Feb 2021 17:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=ACimg=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=B7=BB=E5=8A=A0=E7=B1=BB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/goods_detail/goods_detail.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/pages/goods_detail/goods_detail.vue b/src/pages/goods_detail/goods_detail.vue index 1328e87..6e13e00 100644 --- a/src/pages/goods_detail/goods_detail.vue +++ b/src/pages/goods_detail/goods_detail.vue @@ -53,7 +53,8 @@ export default { this.pics = pics this.goods_name = goods_name this.goods_price = goods_price - this.goods_introduce = goods_introduce + // 给富文本中的img标签添加类名 + this.goods_introduce = goods_introduce.replace(/ item.pics_big) @@ -118,4 +119,17 @@ export default { height: 100%; } } - \ No newline at end of file + +.detail_title { + height: 80rpx; + display: flex; + font-size: 26rpx; + justify-content: center; + align-items: center; +} +// 小程序规定,要修改富文本的标签样式,只能通过类选择器修改,不支持HTML标签选择器 +.img { + /* 覆盖默认基线对齐造成的图片底部缝隙影响 */ + vertical-align: top; +} + \ No newline at end of file