我發現通過谷歌開發者工具驗證碼:html根元素的css類?
<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>
,並通過HTML源代碼驗證碼:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html>
顯然這些類得到的JavaScript生成。 但是爲什麼?爲什麼如此多的CSS根元素的CSS類?
您使用的是現代化器嗎? – breezy 2011-05-25 17:23:33
我相信那是Modernizr。 – 2011-05-25 17:23:45
這不是我的網站。我只是在學習..是的..該網站使用modernizr .. – DrStrangeLove 2011-05-25 17:25:44