$ (document). Ready (function() {Alert (window). Height ());//browser window visibility area heightAlert (document). Height ());//Height of window document in browserAlert ($ (document.body). Height ());//browser window Document height of the bodyAlert ($ (document.body). Outerheight (true));//browser window document the total height of the body includes border padding marginAlert ($ (window). width ());//width of window viewable area in browserAlert (document). width ());//browser window document for image widthAlert ($ (document.body). width ());//browser window Document height of the bodyAlert ($ (document.body). Outerwidth (true));//browser window Document the total width of the body includes border padding margin}) jquery's $ (window). Height () indicates the height of the browser window; height of the browser window if the content of the document is not high enough to the height of the browser<br>However, when the content of a document point exceeds the height of the browser, its height is the height of the entire document. $ (document.body). Height () refers to the actual height of the document.
Do not want to set the fixed, even if the body height is very small can put the bottom content to the bottom of the method:
var h=$ (document). Height ();
$ (' body '). CSS (' height ', h);
Style: position:absolute;bottom:10px;
Transferred from: http://www.cnblogs.com/java-boy/archive/2012/07/15/2592386.html
Various heights and widths of Jquery documents