css – HTML5和frameborder

我有一个HTML5文档的iframe。当我验证,我得到一个错误告诉我,iframe frameBorder的属性是过时的,并使用CSS代替。

我有这个属性frameBorder =“0”在这里,因为它是唯一的方法,我可以找出如何摆脱IE中的边框,我尝试border:none;在CSS中没有运气。有一个兼容的方法解决这个问题吗?

谢谢。

解决方法

HTML 5 doesn’t support attributes such
as frameborder,scrolling,
marginwidth,and marginheight (which
were supported in HTML 4.01). Instead,
the HTML 5 specification has
introduced the seamless attribute. The
seamless attribute allows the inline
frame to appear as though it is being
rendered as part of the containing
document. For example,borders and
scrollbars will not appear.

Source

有关html5 iframe和无缝的更多信息,你可以找到here

Internet Explorer 8不支持html5的所有功能,所以你会有问题使用iframe,htm5,ie在一起。

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效