WeChat applet PC side width and height: the default width and height is 1024*812, and the full-screen width and height is 1920*1032

Recently, I was developing and debugging a PC-side applet. I wanted to know the width and height of the applet when it is opened by default and in full screen. I found a method:

To run the PC applet on the real machine, click devTools

Insert image description here

Printing the window object directly on the console, you can get the default screen width and height on the PC side as1024*812, and the screen width and height after the full-screen PC side applet is1920*1032

Insert image description here

Then customize the device of that size in the developer tools and debug the page style.

Insert image description here

Guess you like

Origin blog.csdn.net/qq_42611074/article/details/134810865