小程序 rich-text 渲染 p 对齐方式 font 颜色 字体大小设置没效果?

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

<p align="center"><font size="5" color="#3598DB"><strong>董事长致辞</strong></font></p>

<p align="center"><font size="5" color="#3598DB"><strong>Chairman's speech</strong></font></p>

1 回复
yuanqiang
yuanqiang1 楼5 年前

rich-text 不支持 align、size、color 等属性,只能用 style

可以用 https://github.com/jin-yufeng/mp-html 代替