Solution 1:
Settings are as follows:
html,body{
min-height:100vh;background-color:#fff;
}
This height does not first write dead, and satisfies the minimum height is full screen
Solution 2:
It can be laid out with VH and VW. 100VH and 100VW are the height and width of your device. The outer box is fixed, the height of all the boxes is equal to 100VH just occupy one screen so there will be no blank. A box like you can use JS to get the height and width of the device, and then use JS to set the height of the box, add up equal to the height of your device can be. The font size is expressed in rem. Relative to the root font size. Here are some practices for mobile-side layouts.
Solution 3:
html,body { width:100%; height:100%;}body { padding: 0; margin: 0;}
Solution 4:
*{ padding: 0; margin: 0;}body{ width: 100vw; height: 100vh;}
The above describes the "(CSS) H5 page content, how to make the page full screen on the phone display it?" "The answer to the question, I hope to have the need to help users."
This article site link: http://www.codes51.com/itwd/4444477.html
H5 How to make the page display in full screen when the page content is small