@Overridepublic void onPageCommitVisible(WebView view, String url) { super.onPageCommitVisible(view, url); linearLayout1.setVisibility(View.GONE); cancelFullScreen(MainActivity.this); mwebview.setVisibility(View.VISIBLE);}这个才是网页加载显示时,处理关闭提示框的最佳时机