我需要获取隐藏在div中的元素的高度.现在我显示div,获得高度,并隐藏父div.这看起来有点傻.有没有更好的办法?
我正在使用jQuery 1.4.2:
$select.show(); optionHeight = $firstOption.height(); //we can only get height if its visible $select.hide();
html css jquery
css ×1
html ×1
jquery ×1