[jQuery] $(ele).css('height') and $.css(ele, 'height') are different?
html: <div id="div1">Hello</div>
JavaScript: $(function() {
alert($('#div1').css('height') + ' ' + $('#div1').height() + ' ' + $.css($('#div1')[0], 'height'));
});
<br clear="all">The result is as follows
Firefox: 19px 19 19
Opera: 19px 19 19
IE: auto 19 19
Why is $(ele).css('height') in IE different? Is this a bug or by design?
--
Arrix
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/