如何让iframe适合我的页面?

时间:2016-10-15 10:16:32

标签: html css iframe

我的意思是删除边距和边框边框。对于这个元素: This is the iframe

我想要像默认的页脚一样适合。

.footer-frame {
    border: 0;
}
<iframe class="footer-frame" src="URL"></iframe>

<!-- Footer code  (Bootstrap)-->
<head>
    <link rel="stylesheet" href="URL">
</head>

<div class="container-fluid">
<div class="row mainFooter">
<footer class="col-md-12">
<p>
 &copy;2016 <a href="URL" id="link3">McCore</a> Minden jog fentartva
| <a href="javascript:;" id="link3">MrAnonymusz</a>
</p>
</footer>
</div>
</div>

<!-- Footer code  (Bootstrap)-->

这是页脚的默认外观(我想看起来像这样): enter image description here

1 个答案:

答案 0 :(得分:0)

我认为这可能有助于你清除边界边缘

&#13;
&#13;
iframe {
    border: 0;
    width: 100%;

}
&#13;
<iframe src="http://getbootstrap.com/"  marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe>
&#13;
&#13;
&#13;