由Modernizr添加的可能的类名的完整列表? [英] Full list of possible classnames added by Modernizr?
问题描述
在哪里可以找到这样的完整列表?
Where can I find such a full list?
我可以说有.js和.no-js,.touch和.no-touch.
I can tell there are .js and .no-js , .touch and .no-touch.
但是.opacity-是否存在.no-opacity或仅缺少.opacity意味着没有支持?这只是一个例子.完整的列表可以帮助我为那些我没有的设备编写代码.
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.
推荐答案
如果支持,所有Modernizr都会添加.<feature>
,如果不支持,则添加.no-<feature>
.检测方式取决于您在下载器中选择的自定义构建设置.
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.
在每个Modernizr构建的源代码中,顶部的注释中都有一个URL,看起来像这样:
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-...
列出了所有已包含的检测.因此,如果fontface
在此列表中,您将知道Modernizr将根据检测结果添加.fontface
或.no-fontface
.
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.
这篇关于由Modernizr添加的可能的类名的完整列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!