How to use HTML5 in IE 7?

2019-03-18 19:13发布

I was wondering whether there is a way to make html5 code visible in Internet Explorer 7 or less.

For example

<div id="container"> 
    <header id="header"> 
        something 
    </header>
</div>

In Internet Explorer 7 the header is not shown at all.

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.

So my question is, is it too early to use HTML5 yet or how can I make it cross-browser working?

8条回答
Melony?
2楼-- · 2019-03-18 20:16

This (truly) incredible bit of Javascript should fulfill 100% of your HTML5 compatibility needs:

http://www.modernizr.com/

查看更多
甜甜的少女心
3楼-- · 2019-03-18 20:17

Start with this: http://html5boilerplate.com/. It should solve most of your problems. It works great.

查看更多
登录 后发表回答