Learn how to get the current screen size/browser window with JavaScript.
Use window.innerWidth
and window.innerHeight
to get the current screen size of a page.
This example displays the browser window's height and width (NOT including toolbars/scrollbars):
Read more about the window
object in our JavaScript Window Tutorial.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!