Modernizr没有将类应用于html-tag [英] Modernizr not applying classes to html-tag

查看:85
本文介绍了Modernizr没有将类应用于html-tag的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个网站,我需要使用Modernizr,但由于某种原因,它不会将类应用于html标签,因为它应该......

I'm building a website at the moment, where I need the use of Modernizr, but for some reason it doesn't apply the classes to the html-tag as it should..

我的代码如下所示:

<!doctype html>
<!--[if lt IE 7]><html class="no-js ie6 oldie" lang="en"><![endif]-->
<!--[if IE 7]><html class="no-js ie7 oldie" lang="en"><![endif]-->
<!--[if IE 8]><html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<script src="http://cdn.hosting4real.com/js/modernizr/modernizr.js"></script>
</head>

任何知道如何使其正常工作的人?

Anyone that knows how to get it working?

祝你好运,

推荐答案

查看源代码(不出所料)显示页面的源代码。它没有显示DOM当前状态的实时视图。如果你想要,请使用DOM查看器(你可以在大多数浏览器中找到一个,并通过Firefox的Firebug插件)。

View source shows (unsurprisingly) the source code for the page. It doesn't show a live view of the current state of the DOM. If you want that, use a DOM viewer (you'll find one built into most browsers and via the Firebug plugin for Firefox).

这篇关于Modernizr没有将类应用于html-tag的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆