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标记的示例。看一看 我正在添加一个解决方案截图。请看一看。