class="no-js" All In One
class="no-js"
All In One
优雅降级, 不支持 js 的 fallback 方式 ✅
https://github.com/SaraSoueidan/textured-text-techniques/blob/master/TexturedText/index.html
This is instruction for
Modernizr
If JavaScript in your browser is enabled, Modernizr
changes no-js
to js
class;
so you can define CSS styles for JavaScript-enabled browsers and for JavaScript-disabled browsers
https://stackoverflow.com/questions/6724515/what-is-the-purpose-of-the-html-no-js-class
demo
https://css-tricks.com/forums/topic/why-every-template-using-no-js-class/
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12297578.html
未经授权禁止转载,违者必究!