【发布时间】: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 显示字符串和图像的内容,但在手机上没有图像(缺少图像的默认图标存在),但文本内容存在。有什么问题,我需要设置一些标志吗?
【问题讨论】: