What is the purpose of the HTML “no-js” class?

后端 未结 7 1210
误落风尘
误落风尘 2020-11-27 08:59

I notice that in a lot of template engines, in the HTML5 Boilerplate, in various frameworks and in plain php sites there is the no-js class added onto the

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 09:30

    Modernizr.js will remove the no-js class.

    This allows you to make CSS rules for .no-js something to apply them only if Javascript is disabled.

提交回复
热议问题