显示浏览器窗口的高度和宽度
生活随笔
收集整理的這篇文章主要介紹了
显示浏览器窗口的高度和宽度
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
說明
顯示瀏覽器窗口的高度和寬度示例
<!DOCTYPE?html> <html> <head><meta?charset="utf-8"><meta?http-equiv="X-UA-Compatible"?content="IE=edge"><title>顯示瀏覽器窗口的高度和寬度</title><link?rel="stylesheet"?href=""> </head> <body><script?type="text/javascript">var?width?=?window.innerWidth?||?document.documentElement.clientWidth?||?document.body.clientWidth;var?hidth?=?window.innerHeight?||?document.documentElement.clientHeight?||?document.body.clientHeight;document.write(w?+?"?"?+?h);</script> </body> </html>轉載于:https://blog.51cto.com/suyanzhu/1902372
總結
以上是生活随笔為你收集整理的显示浏览器窗口的高度和宽度的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: paramiko
- 下一篇: break 与 continue