Home >Web Front-end >JS Tutorial >What does class='no-js' mean?

What does class='no-js' mean?

php中世界最好的语言
php中世界最好的语言Original
2018-03-14 09:34:255313browse

This time I will bring you what class="no-js" means, what are the precautions when using class="no-js", the following is a practical case, let's take a look.

First, confirm that no-js is the class name (class) used with Modernizr.

Modernizr is a javascript library that checks whether your browser supports CSS3 or HTML5 features and automatically adds some class names to And replace the original .no-js (in simple terms, Modernizr is a CSS3/HTML5 tester. What you need to test can be configured on its official website and select the elements you need to test).

Also make your browser support the new tags in HTML5, such as:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn