jQuery 选择器问题
<!--为什么下面这段代码中 div h1 h2 的字体颜色没有变为 红色--><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>javascript</title>
<script src="other/jquery-1.5.1.js"></script>
<script>
$("div, h1, h2").css("color", "red");
</script>
</head>
<body>
<div>Write less,do more</div>
<h1>Write less,do more</h1>
<h2>Write less,do more</h2>
<p>Write less,do more</p>
</body>
</html>
<!--而这里的字体却可以全部变为红色-->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>javascript</title>
<script src="other/jquery-1.5.1.js"></script>
<script>
$("*").css("color", "red");
</script>
</head>
<body>
<div id = "div1">Hello li</div>
<p class="p1">Hello hai</p>
<span>write less</span>
</body>
</html>
还愿大家指教,两段代码只是换了一下所选择的内容而已,为什么第一段就不能达到如期的效果