前提是适配的情况下:
https://blog.csdn.net/weixin_47416539/article/details/125032479
<div class="Login">
<div class="login_right"></div>
</div>
.Login{
position:fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background: url('../../assets/login/login.jpg') no-repeat;
border-top: 1px solid transparent;
box-sizing: border-box;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-position: center 0;
.login_right{
width: 358px;
height: 500px;
background: #FFFFFF;
position: fixed;
left: 1200px;
top: 190px;
}
版权声明:本文为weixin_47416539原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。