开发者

modernizr - how to

开发者 https://www.devze.com 2023-03-18 05:45 出处:网络
Hi I am testing modernizr and this is the code i did and i am not able to see the styles in the html tag in view source, does any one know why ???

Hi I am testing modernizr and this is the code i did and i am not able to see the styles in the html tag in view source, does any one know why ???

<html class="no-js">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>title</title>
<script type="text/javascript" src="http://www.modernizr.com/downloads/modernizr-latest.js"></script>
</head>
<body>content</body>
开发者_开发知识库


When you view source you are viewing the actual source code of the file as downloaded, not after the script has executed (at least in modern browsers, I seem to remember that IE6 somehow showed source based on the live DOM).

If you use something like FireBug you can see the live source, including the classes on the html element.

0

精彩评论

暂无评论...
验证码 换一张
取 消