Feature.js-轻量级浏览器特性检测JavaScript库插件 Feature.js is a fast, simple and lightweight browser feature detection library in 1kb

测试结果:红色代表你的浏览器不支持该特性!

实际使用:

CSS 3D transforms

CSS transforms

CSS transitions

Requires click event:

AddEventListener

QuerySelectorAll

MatchMedia

ClassList API

Placeholders

LocalStorage

Viewport Units

REM Units

SVG

Canvas

WebGL

Touch

Requires touchstart event:

Geolocation

Srcset

Picture element

CORS

Device Motion

Device Orientation

Context Menu

Requires right click: