Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.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 Iframe表示找不到文件,而不是显示网站_Html_Iframe - Fatal编程技术网

Html Iframe表示找不到文件,而不是显示网站

Html Iframe表示找不到文件,而不是显示网站,html,iframe,Html,Iframe,我试图在html页面中显示整个网站。但它正在查看我的本地资源,并显示未找到的文件 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <style> body { margin: 0; /* Reset default margin */ } iframe { display: block; /* iframes are inline by default */

我试图在html页面中显示整个网站。但它正在查看我的本地资源,并显示未找到的文件

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<style>
body {
    margin: 0;            /* Reset default margin */
}
iframe {
    display: block;       /* iframes are inline by default */
    background: #000;
    border: none;         /* Reset default border */
    height: 100vh;        /* Viewport-relative units */
    width: 100vw;
}
</style>

<head>
    <meta charset="utf-8" />
    <title>Test page</title>
</head>
<body>
    <iframe src="http://stackoverflow.com/questions/3982422/full-screen-iframe" />
</body>
</html>


身体{
保证金:0;/*重置默认保证金*/
}
iframe{
display:block;/*默认情况下,iframe是内联的*/
背景:#000;
边框:无;/*重置默认边框*/
高度:100vh;/*视口相对单位*/
宽度:100vw;
}
测试页

如果您更改了URL中的任何内容。请清除缓存,然后重试。(就像你没有先使用http://first,现在又添加了http://first)