Full list of possible classnames added by Modernizr?

丶灬走出姿态 提交于 2019-12-11 12:39:20

问题


Where can I find such a full list?

I can tell there are .js and .no-js , .touch and .no-touch.

But .opacity -- is there .no-opacity or just missing .opacity means no support? This is just an example. A full list helps me a lot in writing code for those devices that I don't have.


回答1:


All Modernizr detects will add .<feature> if supported and .no-<feature> if not. The set of detects depends on the custom build settings you chose in the downloader.

In the source of every Modernizr build, there's a URL in the comment at the top, which looks something like this:

Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-...

which lists all of the detects which have been included. So if fontface is in this list, you know that Modernizr will either add .fontface or .no-fontface depending on the detection result.



来源:https://stackoverflow.com/questions/19173215/full-list-of-possible-classnames-added-by-modernizr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!