The following editor will bring you an article about CSS full-screen background image settings and a detailed explanation of the Django loading image path. The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor to take a look
css full-screen background image setting, detailed explanation of django loading image path
<head> <style type="text/css"> #bg { position:fixed; top:0; left:0; width:100%; height:100%; } #bg img { position:absolute; left:0; right:0; bottom:0; margin:auto; width:100%; height:100%; z-index:-1; } </style> </head> <body> <p class="container"> <p id="bg"> <img src="{% static 'img/login.jpg' %}" alt=""> </p> <p> 添加内容,该内容不会被遮挡,分割 </p> </body>
The above is the detailed content of css full screen background image setting django loading image path detailed instructions. For more information, please follow other related articles on the PHP Chinese website!