JavaScript 準確獲取手機屏幕的寬度和高度?

document.documentElement.clientWidth; 獲取可視區域的寬度 document.documentElement.clientHeight; 獲取可視區域的高度 document.body.scrollTop; 獲取被捲去的高度 下面的格式有待參考,可以自己測試
相關文章
相關標籤/搜索