<head>
<style type="text/css">
#bg {
position:fixed;
top:;
left:;
width:100%;
height:100%;
} #bg img {
position:absolute;
left:;
right:;
bottom:;
margin:auto;
width:100%;
height:100%;
z-index:-1;
}
</style>
</head>
<body>
<div class="container">
<div id="bg">
<img src="{% static 'img/login.jpg' %}" alt="">
</div>
<div>
添加内容,该内容不会被遮挡,分割
</div>
</body>