jQuery获取元素的各种高度

总结
height()                 // 高度为 height ,
innerHeight()        // 高度为 height+padding ,
outerHeight()        // 高度为 height+padding+border ,
outerHeight(true)  // 高度为 height+margin+padding+border ;

你可能感兴趣的:(jQuery获取元素的各种高度)