“全屏” < IFRAME> [英] "Full screen" <iframe>

查看:113
本文介绍了“全屏” < IFRAME>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用下面的代码创建iframe时:

 < iframe src =mypage.htmlstyle = border:0; width:100%; height:100%>您的浏览器不支持iFrame。< / iframe> 

iframe不会一直行进 - 围绕iframe的10px白色边框



解决方案

code> body 在大多数浏览器中都有一个默认边距。试试:

  body {
margin:0;
}

iframe


When I use the following code to create an iframe:

<iframe src="mypage.html" style="border: 0; width: 100%; height: 100%">Your browser doesn't support iFrames.</iframe>

The iframe doesn't go all the way—a 10px white "border" surrounds the iframe. How could I solve this?

Here is an image of the problem:

解决方案

The body has a default margin in most browsers. Try:

body {
    margin: 0;
}

in the page with the iframe.

这篇关于“全屏” &LT; IFRAME&GT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆