盒子是middle
#middle{
border: 1px solid blue;
position: absolute;
margin-top:0px ;
height: 590px;
width: 1345px;
margin: 0px auto;
background: url(../img/yjw_login_default_bg.png) no-repeat;
background-size: cover;
}
这段代码的倒数两行就能实现此功能。
注意是:background,不是background-image。