rich-text 图片自适应手机端不生效,开发工具能生效?

发布于 8 年前作者 xieyang2716 次浏览最后编辑 8 年前来自 ask

post_content为后端返回的富文本内容

post_content.replace(/\<img/gi, ‘<img style=“width:100%;height:auto;display:block;”’)

开发工具:

真机:

1 回复