如何在IE 7中使用HTML5? [英] How to use HTML5 in IE 7?
问题描述
我想知道是否有一种方法使html5代码在Internet Explorer 7或更低版本中可见。
I was wondering whether there is a way to make html5 code visible in Internet Explorer 7 or less.
例如
<div id="container">
<header id="header">
something
</header>
</div>
在Internet Explorer 7中,标题不会显示。
In Internet Explorer 7 the header is not shown at all.
我找到了一个解决方法这里,IE HTML5启用脚本,它使用javascript创建html5元素。但是会发生什么,< header>
标签看起来不像在其他浏览器中那样。
I found a workaround here, a IE HTML5 enabling script, which creates the html5 elements with javascript. But what happens is that the <header>
tag looks not at all as it does in other browsers.
所以我的问题是,使用HTML5还为时过早,或者如何使其跨浏览器工作?
So my question is, is it too early to use HTML5 yet or how can I make it cross-browser working?
推荐答案
(真正)令人难以置信的Javascript应该满足您的HTML5兼容性需求的全部:
This (truly) incredible bit of Javascript should fulfill 100% of your HTML5 compatibility needs:
这篇关于如何在IE 7中使用HTML5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!