如何显示外部站点但保留应用程序 header

How to display an external site but keep an application header

我是 Phonegap 的新手,正在使用 Intel XDK。如何加载外部网站但维护自己的网站 header?

现在,我正在做的就是加载网站

window.location = "http://google.com";

我想要右边的图片。

编辑:建议使用 iframe。我试过了,但我无法让浏览器部分全屏显示。

    <iframe src="http://www.google.com/" style="width:100%; height:100%;">

看到你标记了 html 我想我们可以使用 iframe。在您的情况下,请尝试按照 <iframe src="http://www.google.com"></iframe> 的方式添加一些内容,然后根据您的喜好设置样式。

查看 this webpage 了解有关 iframe 的更多信息。