当我在浏览器中打开结帐页面时,它显示正确,但是在WebView上打开时,它显示不正确
来自浏览器的 来自Webview的这是我的网络视图中的代码
webView = findViewById(R.id.Web);
webView.setWebChromeClient(new WebChromeClient());
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webView.getSettings().setUserAgentString("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0");
webView.setWebViewClient(new WebViewClient(){
@Override
public void onPageFinished(WebView view, String url) {
getSupportActionBar().setTitle(webView.getTitle());
boot.setVisibility(View.GONE);
webView.setVisibility(View.VISIBLE);
super.onPageFinished(view, url);
}
});
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(getIntent().getExtras().getString("url"));