标签:
function getClientSize() {
var c = window,
b = document,
a = b.documentElement;
if (c.innerHeight) {
return {
width: c.innerWidth,
height: c.innerHeight
}
} else {
if (a && a.clientHeight) {
return {
width: a.clientWidth,
height: a.clientHeight
}
} else {
return {
width: b.body.clientWidth,
height: b.body.clientHeight
}
}
}
}
标签:
原文地址:http://www.cnblogs.com/crazyJavaBoy/p/4819102.html