图集1/1

正文 427字数 86,025阅读


function getWindowHeight(frameObject) { if (document.all) return frameObject.document.body.clientHeight; // IE on Mac and Windows if (document.layers) return frameObject.document.clientHeight; } function getWindowWidth(frameObject) { if (document.all) return frameObject.document.body.clientWidth; // IE on Mac and Windows if (document.layers) return frameObject.document.clientWidth; }
Run code
Cut to clipboard