gpt4 book ai didi

html - 从 IFrame 中删除边框

转载 作者:bug小助手 更新时间:2023-10-28 10:53:22 25 4
gpt4 key购买 nike

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

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

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

最佳答案

添加 frameBorder 属性(注意大写“B”)。

所以它看起来像:

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

关于html - 从 IFrame 中删除边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65034/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com