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 badges
Add a ment  | 

2 Answers 2

Reset to default 6

according 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