由Modernizr添加的可能的类名的完整列表? [英] Full list of possible classnames added by Modernizr?

查看:105
本文介绍了由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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆