How to make the html background image full screen
1. First, set the height of html and body to 100%
Recommended learning: html tutorial
html,body{ width:100%; height:100% }
2. Then add a background image to the body and set the background-size to 100%.
body{ font-family: "华文细黑"; background:url("../img/Flyer-bg.png") no-repeat; background-size: 100%; }
For more related tutorials, please pay attention to PHP Chinese website!
The above is the detailed content of How to make html background image full screen. For more information, please follow other related articles on the PHP Chinese website!