-
String customHtml = "<html><body><font color='red'>hello baidu!</font></body></html>";
webview.loadData(customHtml, "text/html", "UTF-8"); 加载定义的代码,并设定编码格式和字符集。
webview加载html格式的文本
最新推荐文章于 2024-01-10 14:40:53 发布
String customHtml = "<html><body><font color='red'>hello baidu!</font></body></html>";
webview.loadData(customHtml, "text/html", "UTF-8"); 加载定义的代码,并设定编码格式和字符集。