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