Comments (7)
提供可复现的 html 内容
from mp-html.
提供可复现的 html 内容
已提供,导出的一个常量文件,就是富文本内容。已测试该端富文本:
- 用微信富文本组件可以显示图片:
<rich-text nodes="{{richNode}}"></rich-text>
- 用mp-html 不显示图片:
<mp-html content="{{richNode}}" selectable="force" show-img-menu="{{true}}" />
富文本内容word文档:
富文本内容.docx
from mp-html.
提供可复现的 html 内容
有结论了吗?富文本已提供
from mp-html.
目前测试了一下。因为微信小程序会额外加一层view, 如场景1图1所示。这时候这层view的高宽为0, 所以内部图片如果指定100%,则图片宽高也为0,所以不显示。
任选一个即可。 [推荐1]
1、如果去掉富文本style 中的width:100%!important; 正常显示
2、修改组件mp-html/node/node.vue style ._img
/* 图片默认效果 */
._img {
min-width: 720rpx; //新增部分
max-width: 100%;
-webkit-touch-callout: none;
}
from mp-html.
目前测试了一下。因为微信小程序会额外加一层view, 如场景1图1所示。这时候这层view的高宽为0, 所以内部图片如果指定100%,则图片宽高也为0,所以不显示。
任选一个即可。 [推荐1]
1、如果去掉富文本style 中的width:100%!important; 正常显示 2、修改组件mp-html/node/node.vue style ._img
/* 图片默认效果 */ ._img { min-width: 720rpx; //新增部分 max-width: 100%; -webkit-touch-callout: none; }
我们按您的指示修改组件mp-html/node/node.vue style ._img的图片默认效果样式,但是这个最小图片宽度会影响小图的展示。有些图片可能只有不到720rpx宽度。
如图所示:去掉最新宽带才显示正常,如图:
from mp-html.
我们按您的指示修改组件mp-html/node/node.vue style ._img的图片默认效果样式,但是这个最小图片宽度会影响小图的展示。有些图片可能只有不到720rpx宽度。
如图所示: 去掉最新宽带才显示正常,如图:
from mp-html.
的确,方式2的侵入性会比较强,所以方案1的方式在您那边展现是?此外还需要麻烦提供最新可复现的html
from mp-html.
Related Issues (20)
- iOS真机未渲染tag-style定义的table的border样式
- uni-app包微信端小程序部分富文本内容特殊符号会报错replace of null HOT 1
- 微信小程序渲染解析以下格式的html异常包含(sgv animate) HOT 1
- mp-html表格中带超链接,样式错乱 HOT 1
- table内有a标签,table嵌套table会存在样式错乱
- taro 框架 selectable={true} 长按复制文本不生效 HOT 2
- svg图片展示不对 HOT 1
- 请问要修改这块文字的样式,应该设置什么标签啊? HOT 2
- 如何实现mode=aspectFill?
- 传入有内容的<a>标签。会导致渲染出来的内容换行 HOT 1
- mp html 不支持svg里的响应标签比如rect、foreignObject、animate HOT 1
- taro3.6.18 未渲染出mp-html的dom
- 快手小程序图片展示有问题 HOT 1
- uniapp + vite + ts 在使用 latex 插件时编译报错 HOT 2
- [Component] <rich-text>: parse error TypeError: Cannot read property 'replace' of null(env: Windows,mp,1.06.2307250; lib: 3.3.1)” HOT 3
- 希望editable插件支持有序、无序列表 HOT 1
- markdown和latex可以一起渲染吗 HOT 2
- taro3 vue3 引用原生mp-html组件编译错误
- 能否实现富文本打字机的效果?
- 图片加载闪烁 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mp-html.