【发布时间】:2010-03-23 02:53:21
【问题描述】:
我想获取一个对象的高度属性:
$('.selector img').each(function(index,e){
thisImage = $('#topContent img').get(index);
}
这么久没问题,但后来我想得到这样的高度:
thisImage.height;
我认为这相当于:
thisImage.height();
或:
thisImage.css("height");
但两者都不适合我。
最大的问题是
thisImage.height;
在 chrome 中不起作用。
我错过了什么还是这是一个已知的错误?还有其他方法可以获取 chrome 的高度吗?
【问题讨论】: