.main{
margin: 0 auto;
background: url('photo.jpg') no-repeat;
background-size:100% 100%;
width: 1000px;
height: 1000px;
}
暂时只知道这一种有效的方法。
.main{
margin: 0 auto;
background: url('photo.jpg') no-repeat;
background-size:100% 100%;
width: 1000px;
height: 1000px;
}
暂时只知道这一种有效的方法。