How to write code for full-screen display of background pictures in browsers
This article mainly introduces "how to write code for full-screen display of background pictures in browsers". In daily operation, I believe many people have doubts about how to write code for full-screen display of background pictures in browsers. 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 of "how to write code for full-screen display of background pictures in browsers". Next, please follow the editor to study!
Css style:
The code is as follows:
Div#div1 {
Position:fixed
Top:0
Left:0
Bottom:0
Right:0
Z-index:-1
}
Div#div1 > img {
Height:100%
Width:100%
Border:0
}
Html:
The code is as follows:
Log in
User name:
Password:
At this point, the study on "how to write code for full-screen display of background pictures in a browser" is over. I hope to be able to solve your 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!