javascript实现兼容IE获取窗体的高与宽
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;
}
如果您觉得本文的内容对您的学习有所帮助:
关键字:
Jquery让IE6支持PNG透明背景图片插件详解