获取到富文本内容 修改img样式

const regex = new RegExp('<img', 'gi')
res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`);

  

posted @ 2021-03-26 09:25  吃鸡小能手  阅读(384)  评论(0编辑  收藏  举报