测试代码:
<!DOCtypehtml>
<HTML lang="en">
<head>
<metacharset="GBK" />
<meta http-eqUIv="Content-Type" content="text/html; charset=gbk" />
<title>JQueryCSS Test</title>
<script type="text/javascript" src="jQuery.JS"></script>
<script type="text/JavaScript">
jquery(document).ready(function(){
alert(typeofjquery('#csszindex').css('z-index'));
});
</script>
</head>
<body>
<span id="csszindex" style="z-index:100px;">test</span>
</body>
</html>
复制代码 代码如下:
<!DOCtypehtml>
<HTML lang="en">
<head>
<metacharset="GBK" />
<meta http-eqUIv="Content-Type" content="text/html; charset=gbk" />
<title>JQueryCSS Test</title>
<script type="text/javascript" src="jQuery.JS"></script>
<script type="text/JavaScript">
jquery(document).ready(function(){
alert(typeofjquery('#csszindex').css('z-index'));
});
</script>
</head>
<body>
<span id="csszindex" style="z-index:100px;">test</span>
</body>
</html>
弹出框显示信息:
ie8:
ie7:
IE6:
Opera:
后面的几个都一样,都返回的是String类型的。













网友评论文明上网理性发言已有0人参与
发表评论: