JS 取目前窗口大小的函数
JS 取当前窗口大小的函数
function getWindowSize(){
return {
Width:Math.max(document.body.scrollWidth,document.documentElement.clientWidth),
Height:Math.max(document.body.scrollHeight,document.documentElement.clientHeight)
}
}
function getWindowSize(){
return {
Width:Math.max(document.body.scrollWidth,document.documentElement.clientWidth),
Height:Math.max(document.body.scrollHeight,document.documentElement.clientHeight)
}
}