var w = getClientSize().width;
var w = getClientSize().width;
var = getClientSize().height - 97;
程式碼🎜>function getClientSize() {
var a = h = 0;
if (window.innerHeight) {
a = window.innerWidth;
h = windowinnerHeight
if (document.documentElement && document.documentElement.clientHeight) {
a = document.documentElement.clientWidth;
h = document.documentElement.clientHeight
. body.clientWidth;
h = document.body.clientHeight
}
}
return {
寬度:a,
高度:h
};
寬度:a,
高度:h
}; 🎜>