任何测试我的网站有多少支持HTML5的方法



html5test.com显示浏览器对HTML5的支持程度。我最近开始用文章等新元素将我的网站更改为HTML5。我想测试我的网站的可能百分比(或)元素是旧的还是需要更新的?

退房http://www.modernizr.com和http://yepnopejs.com/它可以帮助您检测浏览器对css3功能和html5功能的支持。

还可以查看html5油板

Modinizr会将类添加到html标记中,例如,如果用户没有启用javascript,则会添加类no-js,以便您可以在样式表中使用.no-js。

<html class="js flexbox canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths" lang="en">

最新更新