Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 webview 我正在应用setUseWideViewPort(true)属性,然后即使 body 较少(在屏幕中修复),它也会显示水平和垂直滚动。
setUseWideViewPort(true)
如何克服这个问题?
尝试这个 :
webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setUseWideViewPort(true);