Jquery obtains the code of the browser width and height: <SCRIPT type = "text/JavaScript"> $ (Document). Ready (function () { Alert ($ (window). Height (); // The visible area height of the current window in the browser Alert ($ (document). Height (); // The height of the current window document in the browser Alert ($ (document. Body). Height (); // The height of the current file body in the browser window Alert ($ (document. Body). outerheight (true); // the total height of the current file body in the browser window includes border padding margin. Alert ($ (window). Width (); // The width of the visible area of the current window in the browser Alert ($ (document). Width (); // width of the Document Object in the current window of the browser Alert ($ (document. Body). Width (); // The height of the current file body in the browser window Alert ($ (document. Body). outerwidth (true); // The total width of the current file body in the browser window includes border padding margin Alert (); } ) </SCRIPT> Visible area width of the webpage: Document. Body. clientwidth Visible area height: Document. Body. clientheight Visible area width of the webpage: Document. Body. offsetwidth (including the width of the edge) Visible area height of the webpage: Document. Body. offsetheight (including the height of the edge) Webpage text width: Document. Body. scrollwidth Webpage text height: Document. Body. scrollheight The height of the page to be rolled: Document. Body. scrolltop Left: Document. Body. scrollleft Page body: window. screentop Page body part left: window. screenleft Screen Resolution Height: window. Screen. Height Screen Resolution width: window. Screen. Width Available screen workspace Height: window. Screen. availheight Available workspace width: window. Screen. availwidth |