uniapp 移动端渲染富文本时图片超宽解决方法
使用replace替换富文本中的图片属性
let reg = new RegExp('<img','gi'); this.info = this.info.replace(reg,'<img style="max-width:100%;vertical-align: top;"');
使用replace替换富文本中的图片属性
let reg = new RegExp('<img','gi'); this.info = this.info.replace(reg,'<img style="max-width:100%;vertical-align: top;"');