Several methods of implementing browser full screen windows

xiaoxiao2021-03-06  63

Browse the web, often find your browser window, but the content is still there. Is this effect? Implementing this function as long as there are three principles, it has given them a name in accordance with the implementation method, respectively: the sky is passing the sea law, and the body is still the soul method and returning to the real law. Don't be scared by their name, in fact, it is not difficult, as long as I look at the following, I understand the truth!

First, the sea is over the sea law - JavaScript

We know that the display of the display determines the size of the program window we see, the larger the resolution, the greater the window area, the more content you see. But not, the better the display area, the better, because the change in resolution will bring changes in menu text, which may affect the font of the software interface. This is a question of outside the question. The browser is also a program, which we can use scripting language to control adjustment so that we can implement the sky-hidden Haifa to achieve full screen purposes, the method is on the head of the web file, that is, and / Head> Tags with the following JavaScript code: