对于这行代码:
<iframe width="600" height="400" frameBorder="0" src="http://stackoverflow.com"></iframe>
我收到此错误:(validator.w3.org:XHTML 1.0 Transitional)
there is no attribute "frameBorder"
我在用着frameBorder
因为 IE8 在 iframe 上创建了某种边框。在最新的 Chrome/Firefox 上没问题。
是否有任何其他 W3C 有效的方法来删除边框形式iframe
在 IE8 上?
只需使用 CSS:
<iframe width="600" height="400" style="border:none;" src="http://www.google.com"></iframe>
附注我假设您在 iFrame 标记中使用了 stackoverflow 作为示例?因为该网站不允许 i-Framed,所以看起来......
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)