var aNode = $('#id');

var height = aNode.height();  //如果在获取height前,aNode已经是display:none 或者说 aNode是隐藏的,那么获取不到aNode的高度

console.log(height);

 

相关文章: