开发者

css classes for html root element?

开发者 https://www.devze.com 2023-03-08 19:40 出处:网络
i found this code via Google Developer Tools: <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" class=\" js canvas canvastext geolocation crosswindowmessaging websqldatabase

i found this code via Google Developer Tools:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class=" js canvas canvastext geolocation crosswindowmessaging websqldatabase no-indexeddb hashchange historymanagement draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms no-csstransforms3d csstransitions  video audio localstorage sessionstorage webworkers applicationcache svg smil svgclippaths no-opera no-mozilla webkit   fontface">
    </html>

and this code 开发者_StackOverflow中文版via html source code:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html>

obviously these classes get generated with Javascript. But Why? Why so many css classes for html root element?


These get generated by Modernizr, as a means to identify what features are available to a user's browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消