企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# Screen 对象 [TOC] window.screen对象包含用户屏幕信息 ## 属性 * screen.availWidth 可用的屏幕宽度 * screen.availHeight 可用的屏幕宽度 * screen.Height 屏幕高度 * screen.Width 屏幕宽度 ## 示例 ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>screen对象</title> </head> <body> <button id="btn">按钮</button> <script> console.log('可用宽度: ' + screen.availWidth + ' 可用高度: ' + screen.availHeight); // 可用宽度: 1920 可用高度: 1030 console.log('宽度: ' + screen.width + ' 高度: ' + screen.height); // 宽度: 1920 高度: 1080 </script> </body> </html> ~~~