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

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

问题描述

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

How do 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')。

Add the frameBorder attribute (note the capital ‘B’).

所以它看起来像:

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

DEMO

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

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