Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 加载整个网页_Html - Fatal编程技术网

Html 加载整个网页

Html 加载整个网页,html,Html,我尝试用iframe加载一个具体的网页: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <iframe id="f

我尝试用iframe加载一个具体的网页:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <iframe id="frame" src="http://www.euronics.ee/" frameBorder="0" width="1000px" height="700px"></iframe>
    </body>
</html>


为什么它不能加载整个页面。它只装身体?如果我尝试,它可以很好地加载其他页面。

如果您检查站点代码,您将看到:

<script type="text/javascript">
            //This block of javascript checks if the current page is opened in a popup IFrame
            //and if this is true - closes popup and reloads parent window.
            //We use Popup template for popup windows and only this template is accepted for popups. A window with any other template will be closed immidiately.
            //This also solves the problem with redirecting to parent after user has logged in via Login popup. After loggin in user is redirected back to My Account page
            //which in turn uses Audio template thus immidiately gets closed and parent gets reloaded.
            if (self != top) {
                $("body").empty(); //also clears body to avoid showing page content while the page is closing
                parent.location.reload();
            }
 </script>

//此javascript块检查当前页面是否在弹出IFrame中打开
//如果这是真的-关闭弹出窗口并重新加载父窗口。
//我们使用弹出窗口模板弹出窗口,只有这个模板是接受弹出窗口。带有任何其他模板的窗口将立即关闭。
//这也解决了用户通过登录弹出窗口登录后重定向到父级的问题。登录后,用户被重定向回我的帐户页面
//这反过来又使用音频模板,因此立即关闭并重新加载父级。
如果(自我!=顶部){
$(“body”).empty();//还清除body以避免在页面关闭时显示页面内容
reload();
}
我想这就是为什么它不会在你的iframe中加载站点。
不是每个人都喜欢在iFrame中的其他站点上显示他们的站点。我想说的是,他们只想要真正的访客。

如果您检查站点代码,您将看到:

<script type="text/javascript">
            //This block of javascript checks if the current page is opened in a popup IFrame
            //and if this is true - closes popup and reloads parent window.
            //We use Popup template for popup windows and only this template is accepted for popups. A window with any other template will be closed immidiately.
            //This also solves the problem with redirecting to parent after user has logged in via Login popup. After loggin in user is redirected back to My Account page
            //which in turn uses Audio template thus immidiately gets closed and parent gets reloaded.
            if (self != top) {
                $("body").empty(); //also clears body to avoid showing page content while the page is closing
                parent.location.reload();
            }
 </script>

//此javascript块检查当前页面是否在弹出IFrame中打开
//如果这是真的-关闭弹出窗口并重新加载父窗口。
//我们使用弹出窗口模板弹出窗口,只有这个模板是接受弹出窗口。带有任何其他模板的窗口将立即关闭。
//这也解决了用户通过登录弹出窗口登录后重定向到父级的问题。登录后,用户被重定向回我的帐户页面
//这反过来又使用音频模板,因此立即关闭并重新加载父级。
如果(自我!=顶部){
$(“body”).empty();//还清除body以避免在页面关闭时显示页面内容
reload();
}
我想这就是为什么它不会在你的iframe中加载站点。
不是每个人都喜欢在iFrame中的其他站点上显示他们的站点。我想说的是,他们只是想要真正的访客。

当我在JSFIDLE中尝试时,我得到以下控制台错误: 阻止原点为“”的帧访问原点为“”的帧。协议、域和端口必须匹配。
您正在加载的站点可能有https请求吗?

当我在JSFIDLE中尝试它时,我得到以下控制台错误: 阻止原点为“”的帧访问原点为“”的帧。协议、域和端口必须匹配。
您正在加载的站点是否有https请求?

什么是具体的网页?
http://www.euronics.ee
除了主体之外,您希望它显示什么D没有标题集,所以不会显示。你说它只加载身体是什么意思?好像它缺少样式表?或者你的意思是它只显示euronics网站的背景?什么是具体的网页?
http://www.euronics.ee
除了主体之外,您希望它显示什么D没有标题集,所以不会显示。你说它只加载身体是什么意思?好像它缺少样式表?或者你的意思是它只显示euronics网站的背景?