一、给html内容设置成如下
this.content = result.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
二、html如下
<view class="news_content" v-html="content"></view>
三、预览如下
image.png
this.content = result.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
<view class="news_content" v-html="content"></view>