问题1:设备实际分辨率 1280x800,webView页面打印window.innerWidth却是980。AVD没问题,跟设备分辨率一致
问题2:
调用下面代码之后,AVD webView页面打印window.innerWidth也变小了 980
settings.setUseWideViewPort(true)
setUseWideViewPort(true) makes the Webview have a normal viewport (such as a normal desktop browser), while when false the webview will have a viewport constrained to its own dimensions (so if the webview is 50px*50px the viewport will be the same size)
Android