css使图片等比缩放
img {
width: 100%;
height: 100%;
object-fit: cover;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
}
砥砺前行