最近我遇到了 HTML5 Boilerplate 并喜欢它!但是,其中有一部分我不明白。
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]-->
Paul Irish 说我们可以使用它来代替 Conditional stylesheets 和 CSS hacks。有没有人有这方面的经验,就像我阅读他的博客一样多次,我仍然无法理解它。
现在我正在使用 CSS3 媒体查询,但它在 IE 中根本不起作用,我只是一个幸运的,CSS3-mediaqueries.js 文件(或类似的文件)和 response.js 文件只是不工作我。所以我决定条件注释或特定样式表适合我,但我记得这个设置但真的不知道如何使用它。
任何帮助深表感谢!