这是webView内容大小

this.getWebView ().getSettings ().setSupportZoom ( true ); 
View zoom = this.getWebView ().getZoomControls (); 
FrameLayout contentView = (FrameLayout) getWindow ().getDecorView ().findViewById ( android.R.id.content ); 
contentView
.addView ( zoom, ZOOM_PARAMS ); 
zoom
.setVisibility ( View.GONE ); 
// set the initial scale that it should display at. the value is the scale percent 
this.getWebView ().setInitialScale ( 75 ); 

 

 

调整字体

WebView myWebView = (WebView) findViewById(R.id.myWebView); 
myWebView
.setBackgroundColor(Color.parseColor("#000000")); 
myWebView
.getSettings.setDefaultFontSize(10); 

 

你可能感兴趣的:(android)