PC Full Screen Summary

the first way

* Note that html is also set to full screen
html and css

全屏展示

Problems encountered
Adding divs around all elements of the page and setting the height of the html body will always cause some problems
(for example, I encountered
1. After setting the html body to 100%, there will be problems with other content on the page.
2. When adding divs around all elements of the page, if the console is opened and then closed, the page will never be refreshed to fill the entire body, and then the area where the console was opened just now will be white, and the user experience is not good
)

The second filling is on the body

My personal experience is that it can also be filled on the body when it is used as a full-screen background, and there is no problem for the time being (subsequent problems will be corrected)
html
insert image description here
css
insert image description here

Guess you like

Origin blog.csdn.net/z1712636234/article/details/86816941