从 IFrame 中删除边框 [英] Remove border from IFrame

查看:33
本文介绍了从 IFrame 中删除边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从嵌入在我的网络应用程序中的 iframe 中删除边框?iframe 的一个例子是:

How would I remove the border from an iframe embedded in my web app? An example of the iframe is:

<iframe src="myURL" width="300" height="300">Browser not compatible.</iframe>

假设背景颜色一致,我希望从我的页面内容到 iframe 内容的过渡是无缝的.目标浏览器仅为 IE6,不幸的是其他人的解决方案无济于事.

I would like the transition from the content on my page to the contents of the iframe to be seamless, assuming the background colors are consistent. The target browser is IE6 only and unfortunately solutions for others will not help.

推荐答案

添加frameBorder属性(注意大写'B').

所以它看起来像:

<iframe src="myURL" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>

这篇关于从 IFrame 中删除边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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