使用meta标签来控制网页显示的窗口,只要在网页中加入下面的代码就可以了: <metahttp-equiv="window-target" content="_top">,这段代码可以防止网页被别人作为一个Frame调用。