简体   繁体   中英

Webview not rendering css properly - Kitkat version 4.4.2

I am not sure what's the problem is. But after googling I thought it is the problem with webview. I have a page which is rendering properly in every device except tablet with kitkat version(even in the browser of respective device, view rendered).

I googled and tried different solutions, but unfortunately nothing worked for me.

mapWebView.Settings.SetLayoutAlgorithm(WebSettings.LayoutAlgorithm.NarrowColumns); //didn't work

mapWebView.SetLayerType(LayerType.Software, null); //didn't work

Any help would be greatly appreciated.

The problem is that you may be using design elements that WebView can't handle.

The Default Android browser - AKA " WebView " -

is based on the same code as Chrome for Android version

However,

WebView does not have full feature parity with Chrome for Android

in other words, it's a toned down version of Chrome for Android.

Source: Google

Check on Can I Use to To see whether "WebView" suppports your element or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM