WebView的背景设置成透明的方法,使用语句setBackgroundColor(0);
WebView web = (WebView) findViewById(R.id.web); web .setBackgroundColor(0); web .setBackgroundResource(R.drawable.yourImage); web.loadData(profile, "text/html", "UTF-8");