Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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
Css 加载iframe时页脚消失_Css_Html_Iframe - Fatal编程技术网

Css 加载iframe时页脚消失

Css 加载iframe时页脚消失,css,html,iframe,Css,Html,Iframe,我想在我的页面有一个页脚,我有以下代码 <div class="container"> <div class="row"> <iframe id="iframe" width="100%" height="100%" src="http://www.selitera.com" style="border: 0; top:0; left:0; right:0; bottom:0; width:100%; height:100%" /> </

我想在我的页面有一个页脚,我有以下代码

<div class="container">
  <div class="row">
    <iframe id="iframe" width="100%" height="100%" src="http://www.selitera.com" style="border: 0; top:0; left:0; right:0; bottom:0; width:100%; height:100%" />
  </div>
  <div class="row">
    Some footer text
  </div>

</div>

  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
  }

  .container {
    height: 100%;
    width: 100%;
    display: block;
  }

一些页脚文本
html,
身体{
保证金:0;
填充:0;
身高:100%;
溢出:自动;
}
.集装箱{
身高:100%;
宽度:100%;
显示:块;
}

我想总是在页面上加载我的页脚,并且在页脚上方有iframe的可用空间吗


有什么建议吗

您必须添加结束标记


我尝试对您的代码进行一些更改,我发现当您添加iframe标记时,它没有关闭,这就是您的页脚没有出现的原因。这是一个如何编写Iframe标记的示例。看一看

我正在添加一个解决方案截图。请看一看。