-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
同一篇富文本内容,在普通H5页面里图片可以正常显示,但是在微信小程序不显示 #510
Comments
提供可复现的 html 内容 |
已提供,导出的一个常量文件,就是富文本内容。已测试该端富文本:
富文本内容word文档: |
有结论了吗?富文本已提供 |
目前测试了一下。因为微信小程序会额外加一层view, 如场景1图1所示。这时候这层view的高宽为0, 所以内部图片如果指定100%,则图片宽高也为0,所以不显示。 任选一个即可。 [推荐1]1、如果去掉富文本style 中的width:100%!important; 正常显示
|
我们按您的指示修改组件mp-html/node/node.vue style ._img的图片默认效果样式,但是这个最小图片宽度会影响小图的展示。有些图片可能只有不到720rpx宽度。 |
的确,方式2的侵入性会比较强,所以方案1的方式在您那边展现是?此外还需要麻烦提供最新可复现的html |
使用环境
平台:微信小程序
基础库版本: 2.30.3
机型: 安卓和ios
问题描述
同一篇富文本内容,在普通H5页面里图片可以正常显示,但是在微信小程序不显示。
复现方式
富文本需要显示图片的地方外层自动加上了一层view, 样式里有display: inline-block;
引用插件
mp-html 版本: v2.4.0
The text was updated successfully, but these errors were encountered: