【问题标题】:WebView doesn't show imageWebView 不显示图像
【发布时间】:2011-12-23 11:07:38
【问题描述】:

我在 myLayout 中有 WebView,我正在尝试加载 html 字符串(我在字符串数据中接收 html),如

tempWebView.loadData(htmlString, "text/html", "UTF-8");

在 htmlString 中有一个带有 src="http://upload.wikimedia.org/wikipedia/commons/e/e3/Flag_of_Papua_New_Guinea.svg" 的 img 标签。问题是在模拟器中 temWebView 显示字符串和图像的内容,但在手机上没有图像(缺少图像的默认图标存在),但文本内容存在。有什么问题,我需要设置一些标志吗?

【问题讨论】:

    标签: android android-widget


    【解决方案1】:

    Android 的 WebKit 版本不支持 SVG、AFAIK。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-28
      • 2018-11-11
      • 2011-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多