从html标记中删除“no js”类,添加“js”类
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从html标记中删除“no js”类,添加“js”类相关的知识,希望对你有一定的参考价值。
Add the "no-js" class to your topmost html element, so you can use CSS to style javascript-free pages. This snippet will then replace that tag with "js", allowing you to style pages with JavaScript.The excellent [HTML5 Boilerplate](http://html5boilerplate.com/) puts `no-js` in the `` element and then uses [Modernizr](http://www.modernizr.com/) to replace it with `js`. If you don't want to use all of that stuff, this snippet does the same thing.
以上是关于从html标记中删除“no js”类,添加“js”类的主要内容,如果未能解决你的问题,请参考以下文章