Upgraded class.

I just included Modernizr in my project, but adds the .hidden class to my html tag. This causes Bootstrap to hide the entire html tag, which, well, is not so useful.

Does anyone know why it is adding a .hidden class to html?

Thanks in advance!

+4
source share
1 answer

I ran into the same problem and found two solutions.

Looking through the Modernizr download page , it looks like a β€œhidden” class is added when Modernizr checks and detects attribute support [hidden].

Just create a Modernizr assembly with discovery for the attribute [hidden].

, , CSS Bootstrap html.hidden - , , Modernizr , .

+8

Source: https://habr.com/ru/post/1607463/


All Articles