HarmonyOS RichText设置html中fontSize,与实际展示不匹配

HarmonyOS
2024-12-27 15:00:39
4105浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
zbw_apple

RichText只支持通用属性中width,height,size,layoutWeight四个属性,不支持fontSize属性,建议使用web组件,参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-richtext-V5#属性

https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-webview-V5#loaddata

分享
微博
QQ
微信
回复
2024-12-27 17:16:15
相关问题
HarmonyOS RichText 展示问题
639浏览 • 1回复 待解决
HarmonyOS RichText展示的内容文字都很小
501浏览 • 1回复 待解决
HarmonyOS 地图展示
666浏览 • 1回复 待解决
HarmonyOS List上展示html字符串
781浏览 • 1回复 待解决
p40 和phone类型匹配
5678浏览 • 1回复 待解决
HarmonyOS RichText组件无法设置字体大小
761浏览 • 1回复 待解决