如何在包括IE7,8在内的所有浏览器中使用HTML5? [英] How can I use HTML5 in all browsers including IE7,8?

查看:110
本文介绍了如何在包括IE7,8在内的所有浏览器中使用HTML5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用HTML5,因为它也支持Iphone,我真的很喜欢它的功能,但是如果它不能与所有浏览器完全兼容,我该怎么办?特别是IE家族。那么有没有办法通过添加一些js脚本e.t.c.这样HTML5及其js api在IE中也能正常工作,因为它适用于其他浏览器,如chrome,firefox和opera e.t.c.这样我就可以在不考虑浏览器兼容性问题的情况下使用它。在html5中也有很多游戏引擎,但如果不支持主要的IE浏览器。或者有人可以告诉我在不考虑兼容性问题的情况下可以获得多大的优势?

I want to use HTML5 because it supports in Iphone also and I really liked its capabilities but what can I do if it is not fully compatible with all browsers? Specially IE family. So is there a way by adding some js script e.t.c. so that HTML5 and its js api work normally in IE also as it works on other browsers like chrome, firefox and opera e.t.c.? So that I can use it without thinking of browser compatibility issues. There are also many game engines in html5 but what if this is not supported major IE browsers. Or can some one tell that how much advantage can I take of html5 without thinking of compatibility issues?

提前致谢

推荐答案

您可以将 http://html5boilerplate.com/ http://code.google.com/p/html5shiv/ ,你很好go。

You can use http://html5boilerplate.com/ together with http://code.google.com/p/html5shiv/ and you're good to go.

对于其他一些很酷的功能,比如旧IE中的视频,你需要使用Flash for video和Javascript libs for canvas。

For some other cool features, like video in old IE, you need to use workarounds like Flash for video and Javascript libs for canvas.

这篇关于如何在包括IE7,8在内的所有浏览器中使用HTML5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆