Comment obtenir la hauteur d'un élément du corps

Ici la hauteur totale de l'ensemble des <div>s'sont de 900 pixels, mais la fonction jQuery retourne la hauteur du corps comme 577 pixels. (Si je supprime le corps CSS, c'est du travail).

Est-il une solution pour ce problème?

$j(function() {
    alert($j("body").height());
})

html, body {
    height:100%;
}

<div style="height:200px">header</div>
<div style="height:500px">content</div>
<div style="height:200px">footer</div>

source d'informationauteur Shiva Srikanth Thummidi