一部のドキュメントでは、ドキュメントの高さを取得できません(何かを絶対に一番下に配置するため)。さらに、上のパディングボトムはこれらのページでは何もしないようですが、高さが返されるページで行います。適切な事例:
http://fandango.com
http://paperbackswap.com
Fandangoでは、
jQuery $(document).height();は正しい値を
document.height返します0
document.body.scrollHeightは0を返します
ペーパーバックスワップ時:
jQueryの$(document).height();TypeError:$(document)is null
document.heightが不正な値を
document.body.scrollHeight返し、不正な値を返します
注:トリックがある場合は、ブラウザレベルの権限があります。