WebView无法在android中正确显示内容

时间:2018-02-23 12:20:15

标签: android webview android-webview

在Android中,Webview没有显示正确的用户界面,但在浏览器中它运行良好。

它有什么问题? 为什么不显示全宽内容? 提前谢谢

我添加了code of page.

enter image description here enter image description here

1 个答案:

答案 0 :(得分:0)

不要只使用网页浏览。还设置它运行浏览器等所有功能。

WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);

.goBack()允许返回webview。 .....如果您希望它看起来像浏览器和响应式

,则必须设置许多属性
相关问题