How to find the HTML5 feature for your HTML5R

本文介绍了如何使用Polyfills和Shims来为不支持HTML5和CSS3特性的浏览器提供兼容方案,并推荐了一些实用工具如Modernizr,以及资源网站帮助开发者了解不同浏览器的功能支持情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

术语:

Polyfills and shims:it consist of carefully crafted (in most cases) JavaScript, HTML and CSS code that help to provide the technology and functionality that you expect the browser to provide natively. In simple words, they provide support for missing features。


With polyfills, the code tries to replicate the real, standards-based API, making it easier to port your applications once a standard feature is included in a future version of a browser. 模拟已有的标准API。

Shims:are also important because, in many cases, they offer features that you’re really interested in but no polyfill is available and you want enhanced features not available in the standard implementation. 添加一些扩充的API。


1. http://caniuse.com/:按照浏览器的版本提供了详尽的HTML5 功能支持情况, you can use this site to find where to get the features for porting.


2. http://html5test.com/: 直接显示UA 对HTML5规范的支持情况


3.  Modernizr:用于检测浏览器是否支持HTML5和CSS3的某些特性的一个工具.


4.HTML5 Cross Browser Polyfills


5.jswikiThis wiki indexes libraries and resources available for JavaScript.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值