一般的情况下使用: node.style.height; 但IE很奇怪,如果你没用css给元素指定height值,它返回auto,这明显不是我们想要的,于是要用到offsetHeight属性: node.offsetHeight;