gpt4 book ai didi

javascript - 如何显示外部站点但保留应用程序标题

转载 作者:行者123 更新时间:2023-11-28 00:04:12 25 4
gpt4 key购买 nike

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

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

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

我想要右边的图像。 enter image description here

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

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

enter image description here

最佳答案

鉴于您已标记 html,我认为我们可以使用 iframe 。在您的情况下,请尝试添加类似 <iframe src="http://www.google.com"></iframe> 的内容然后将其设计成您喜欢的样式。

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

关于javascript - 如何显示外部站点但保留应用程序标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31503280/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com