JS获取电脑分辨率

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title></title>
 6     </head>
 7     <body>
 8         <script type="text/javascript">
 9             console.log(screen.width,screen.height)
10         </script>
11     </body>
12 </html>

 

posted @ 2020-08-12 22:21  yw3692582  阅读(523)  评论(0编辑  收藏  举报