场景为自定义dialog ,需要嵌入一个 web 组件或者richtext 组件来加载 html 内容,底部一个或者两个按钮,请问如何实现自定义适应高度并且设置最大宽高html 内容多种类似于:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title></title></head>
<body style="padding:10px; margin:3rem 14rem 0 0">
<div style="text-align: left;">
<div style="font-size:3.2rem;font-weight:700;text-align:center;margin-top:5px;margin-bottom:15px;">预委托申购提示
</div>
<div style="font-size:2.8rem;line-height:1.2;color: #444;">
因今日开放时间已结束,您提交的申购委托将在下一工作日生效。
</div>
</div>
</body>
</html>
请参考:
https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs-V5/faqs-arkui-83-V5
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-methods-custom-dialog-box-V5