好吧,我可以在 webview 中显示图像,现在我想在图像下方显示它的“标题”。
string img = "<img typeof="foaf:Image" src="link/Photo_One.JPG" width="500" height="375" alt="" title="image cation need to display below" />";
String htmlData = "<html>"
+ head
+ "<body>"
+ "<h1 style=font-family:tt0248m_>"+ title + "</h1>"
+ "<P>"+ intro + "</P>"
+ data
+ "<br>"+ img
// LATER + intVenueString
+ "</body></html>";
web.loadDataWithBaseURL(null, htmlData, "text/html", "UTF-8", null);
谁能知道如何在 webview 中做到这一点?