android - Android WebView 不在 Chrome 78 中呈现 iframe 内容
问题描述
我们有一个带有 iframe 的 html 内容,加载在 webview 中。使用 chrome 版本 78 时,内容将首先呈现第一段,然后在一定高度显示空白,有时会扭曲文本直到底部。
要重现,请将 webview 放在滚动视图中并加载包含 iframe 标签的内容,webview 不会加载所有内容。
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/layoutHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="120dp"
android:src="@drawable/img_logo" />
</RelativeLayout>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
解决方案
推荐阅读
- spring-boot - 在 Spring Boot 中调度一个函数
- postgresql - Postgres 中的异常处理。在异常处理程序中使用引发和回滚
- spring - Spring Boot/Thymeleaf 可执行 Jar,错误解析模板
- python - 如何在没有内置函数的情况下使用参数'key'?
- reactjs - React:为什么注册表单没有在 firebase 用户中创建新用户?
- ios - UISearchBar 警告:UITextEffectsWindow 不应成为键。请向键盘提交错误 | 带有此调用堆栈的 iOS
- html - 如何使用 css 创建倾斜的图像和文本?
- java - 如何使用execute_script输入python selenium
- c++ - 无法远程连接到 windbg 服务器,可能是因为 dll 版本不匹配?
- asp.net-core - 使用 JQuery 数据表时单击事件在 Blazor 中不起作用