jQuery获取cssz-index在各种浏览器中的返回值_jquery
来源:动视网
责编:小采
时间:2020-11-27 20:55:03
jQuery获取cssz-index在各种浏览器中的返回值_jquery
jQuery获取cssz-index在各种浏览器中的返回值_jquery:测试代码: 代码如下: jQuery Css Test jQuery(document).ready(function(){ alert(typeof jQuery('#csszindex').css('z-index')); }); test 弹出框显示信息: IE8: IE7: IE6: Firefox
导读jQuery获取cssz-index在各种浏览器中的返回值_jquery:测试代码: 代码如下: jQuery Css Test jQuery(document).ready(function(){ alert(typeof jQuery('#csszindex').css('z-index')); }); test 弹出框显示信息: IE8: IE7: IE6: Firefox

测试代码:
代码如下:
jQuery Css Test script>
jQuery(document).ready(function(){
alert(typeof jQuery('#csszindex').css('z-index'));
});
script>
test
弹出框显示信息:
IE8:
IE7:
IE6:
Firefox:
Chrome:
Opera:
后面的几个都一样,都返回的是String类型的。
jQuery获取cssz-index在各种浏览器中的返回值_jquery
jQuery获取cssz-index在各种浏览器中的返回值_jquery:测试代码: 代码如下: jQuery Css Test jQuery(document).ready(function(){ alert(typeof jQuery('#csszindex').css('z-index')); }); test 弹出框显示信息: IE8: IE7: IE6: Firefox