$.("*").css的问题
<html>
<head>
<title></title>
<style type="text/css">
body{font-size:12px;text-align:center}
.clsFrame{width:300px,height:100px}
.clsFrame div,span{display:none;float:left;width:65px;height:65px;border:solid 1px #ccc;margin:8px}
.clsOne{background-color:#eee}
</style>
<script language="javascript" type="text/javascript" src="file:///C:/Users/acer/Downloads/jquery/jquery-2.0.3.js">
</script>
<script type="text/javascript">
/* $(function(){
$("#divOne").css("display","block");
});
$(function(){
$("div span").css("display","block");
});
$(function(){
$(".clsFrame .clsOne").css("display","block");
});*/
$(function(){
$("*").css("display","block");
});
/* $(function(){
$("#divOne,span").css("display","block");
}); */
</script>
</head>
<body>
<div class="clsFrame">
<div id="divOne">ID</div>
<div class="clsOne">CLASS</div>
<span>SPAN</span>
</div>
</body>
</html>
上面这段代码中执行 $("*").css("display","block");
后网页上面也显示style和script的内容,怎么回事呢?
------解决方案--------------------好, 怪 啊 。
<!DOCTYPE html>
<html >
<head style='display:block;'>
<meta charset="UTF-8" >
<title >Insert title here</title>
<script src="../lib/jquery/jquery-1.9.1.js" ></script>
<script style='display:block;'>
function v$(id){
this.dom = document.getElementById(id)
}
</script>
<style type="text/css" style='display:block;'>
body{font-size:12px;text-align:center}
.clsFrame{width:300px,height:100px}
.clsFrame div,span{display:none;float:left;width:65px;height: