开发者

How can I get html5 tags to work with older versions of IE? [closed]

开发者_开发知识库 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I've tried using <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> but still does not work. please help.

thanks


As others have mentioned, it's more a matter of what you mean by "not working."

The HTML5Shim is a tool to get IE to recognize the new HTML5 elements like <nav>, <section>, <article> and so on. So that you can use CSS and JavaScript on those elements like you would a <div> tag.

But the Shim won't make the <video> or <audio> tag suddenly start playing video or audio files. Nor will it allow you to do geolocation or pull up calendars for the <input type="date"> field.

If you have to write pages for IE8 and lower, you should check out http://caniuse.com/ to see what aspects of HTML5 are supported by older versions of IE. You might be surprised that it does support some things. And for other options, you should consider making them enhancements to your pages rather than requirements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜