简体   繁体   English

如何使iframe适应我的页面?

[英]How i can make an iframe to fit in my page?

I mean to remove the margin's and the frameborders. 我的意思是删除边距和frameborders。 For this element: 对于此元素: 这是iframe

And I wanna fit like the default footer. 我想适合默认页脚。

 .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)--> 

This is the default looking of the footer (i wanna look like this): 这是页脚的默认外观(我想看起来像这样): 在此处输入图片说明

I think this might help u to clear ur margins n borders 我认为这可能有助于您清除边界上的空白

 iframe { border: 0; width: 100%; } 
 <iframe src="http://getbootstrap.com/" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM