如何编写向后兼容的HTML5? [英] How to write backwards compatible HTML5?

查看:230
本文介绍了如何编写向后兼容的HTML5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用HTML5的基本功能,但同时,让我的代码向后兼容老版本的浏览器(优雅降级)。例如,我想使用酷的CSS3属性来制作圆角。有没有可用的教程用于写优雅的可降解HTML5?

I'd like to start using HTML5's basic features, but at the same time, keep my code backwards compatible with older browsers (graceful degradation). For instance, I'd like to use the cool CSS3 properties for making rounded corners. Is there any available tutorial for writing gracefully degradable HTML5 ?

此外,我应该支持哪些浏览器,以便我的应用程序。是至少95%的访客功能?

Additionally, what browsers should I support so that my app. is functional for at least 95% of visitors? What are the ways to test those browsers painlessly ?

推荐答案

在谈论HTML5或CSS3时,应该考虑:

When talking about HTML5 or CSS3, you should head over to:

我什么时候可以使用... strong>

When can I use...

可以看出,我们还远远不能使用。

As can be seen, we are still far far away from using that.

旧版本的浏览器不支持HTML5或CSS3,但是您可以执行所谓的

Also, since old versions of the browsers won't support HTML5 or CSS3, however, you can do what is known as:

逐步增强和优雅降级

Progressive Enhancement and Graceful Degradation

以下是一些资源:


  • HTML5网站的图库 (您可以了解并了解他们的想法)

  • a href =http://www.ibm.com/developerworks/web/tutorials/wa-html5/ =nofollow noreferrer>使用HTML5和CSS3创建现代网站

  • Gallery of HTML5 Sites (You can learn and get the idea from them)
  • Create modern Web sites using HTML5 and CSS3

这篇关于如何编写向后兼容的HTML5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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