![](/img/trans.png)
[英]Viewport metatag in WebView not scaling the contents properly in Android
[英]WebView not scaling Properly in Android
我面臨Android Web View的一些問題。 有時它的縮放比例適當,但有時數據會超出頁面范圍。
您可以手動設置縮放設置:
WebSettings webSettings = webview.getSettings();
// enable zoom
webSettings.setSupportZoom( true);
webSettings.setBuiltInZoomControls( true);
// disable zoom
webSettings.setSupportZoom( false);
webSettings.setBuiltInZoomControls( false);
嘗試使用此代碼檢查體重秤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.