💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# offsetHeight 网页高度   不包含滚动条的高度 ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>DOM-obj</title> </head> <body> <script> var width = document.documentElement.offsetWidth || document.body.offsetWidth; // 文档的宽度 var height = document.documentElement.offsetHeight || document.body.offsetHeight; // 文档的高度 console.log(width +' * '+height); // 1920 * 50 </script> </body> </html> ~~~