wx微小程序中使用富文本,发现图片溢出。 使用replace替换<img> 为<img style="max-width:100%">无效时 可使用属性选择器,即wxss中: [alt]{ width:100% } 好使!