HTML5和frameborder [英] HTML5 and frameborder
问题描述
我有一个HTML5文档的iframe。当我验证时,我得到一个错误告诉我, iframe frameBorder
的属性已过时,并改用CSS。
I have an iframe on an HTML5 document. when I validate I am getting an error telling me that the attribute on the iframe frameBorder
is obsolete and to use CSS instead.
我有这个属性 frameBorder =0
在这里,因为这是唯一的方法,我可以找出如何摆脱边框在IE中,我试过 border:none;
在CSS没有运气。是否有合适的解决方法?
I have this attribute frameBorder="0"
here because it was the only way I could figure out how to get rid of the border in IE, I tried border:none;
in CSS with no luck. Is there a compliant way to fix this?
感谢。
推荐答案
HTML 5不支持像
这样的属性,如frameborder,scrolling,
marginwidth和marginheight(在HTML 4.01中支持
)。相反,
的HTML 5规范有
引入了无缝属性。
无缝属性允许内联
框架出现,就像它是作为包含
文档的一部分呈现的
。例如,边框和
滚动条不会出现。
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.
有关html5 iframe的详细信息,无缝您可以找到这里
More information about html5 iframe and seamless you can find here.
Internet Explorer 8不支持html5的所有功能,因此您在使用iframe,htm5时会遇到问题。
Internet explorer 8 doesn't support all the features of html5 so you will have problem using iframe,htm5,ie together.
这篇关于HTML5和frameborder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!