小程序富文本 图片过大问题处理 <rich-text nodes="{{content}}" style="font-size:14px;" space="emsp"></rich-text> content为后端返回数据 content = content.replace(/<img/gi, '<img style="max-100%;height:auto" ') 过滤设置最大width this.setData({content:content})