admin管理员组文章数量:1401771
Modernizr use to have a .no-touch class where if you nest hover states under it, it would ignore it on touch screen devices.
I have recently downloaded a new version of Modernizr but cant seem to get the .no-touch class working.
Have they removed/renamed it or am I doing something wrong?
Thanks
Modernizr use to have a .no-touch class where if you nest hover states under it, it would ignore it on touch screen devices.
I have recently downloaded a new version of Modernizr but cant seem to get the .no-touch class working.
Have they removed/renamed it or am I doing something wrong?
Thanks
Share Improve this question asked Jan 19, 2016 at 17:24 ClarityClarity 531 silver badge5 bronze badges2 Answers
Reset to default 6according to the release notes
Modernizr.touch has been removed in favor of Modernizr.touchevents
You can use the class touchevents
now (you have to include the touchevents module)
本文标签: javascriptlatest version of modernizr and notouch classStack Overflow
版权声明:本文标题:javascript - latest version of modernizr and no-touch class - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744249090a2597161.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论