版权声明:版权没有,转载随意 https://blog.csdn.net/MAOZEXIJR/article/details/90242440
html5
<div class='bg-center' />
css3
.bg-center {
background: url(../images/1.png) no-repeat center center;
background-size: contain;
}
<div class='bg-center' />
.bg-center {
background: url(../images/1.png) no-repeat center center;
background-size: contain;
}