热门关键字:
jquery > jquery教程 > javascript > javascript实现兼容IE获取窗体的高与宽

javascript实现兼容IE获取窗体的高与宽

1151
作者:管理员
发布时间:2015/7/27 20:50:52
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Show.aspx?id=691

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;
}






如果您觉得本文的内容对您的学习有所帮助:支付鼓励



关键字:javascript function window isFunc typeof method param Object Boolean null clientHeight clientWidth
友荐云推荐