How to set the full screen back of html5
This article mainly introduces "how to set up html5 full-screen back". In daily operation, I believe many people have doubts about how to set up html5 full-screen back. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to set up html5 full-screen back". Next, please follow the editor to study!
The standard of the design drawing (750) confirms that it is the background image (through screen bottom image) application scenario: mobile promotional page or activity page
Wrong way to write it: add it to div and set min-height with pictures, but the page will not bounce back
Ultimate plan
Html,body {width:100%; height:100%} body {font-family: "Chinese Fine Black"; background:url (".. / img/Flyer-bg.png") no-repeat; background-size: 100%;}
A hack solution to solve the problems in Vertical Drama
Cache .parent {width:200px; height: 200px; / * the following attributes are vertically centered * / position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; background-color: # aaa } 111
Other options:
Document
Clear floats:
. float-left {float: left;}. Float-right {float: right;}. Clear-fix:after {display: table; content:'; clear: both;} at this point, the study on "how to set up html5 full-screen back" is over. I hope to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!