Css从中心放大

2022-05-01
2278

Css

.product .swiper-wrapper .ul .li a{

background: url(image/reason_bj.jpg) no-repeat right;
background-position: center !important;
background-repeat: no-repeat !important;
-webkit-background-size: cover !important;
-moz-background-size: cover !important;
-o-background-size: cover !important;
background-size: cover !important;
transition: all .5s;
}
.product .swiper-wrapper .ul .li a:hover {
    -webkit-transform: scale(1.04);
    -ms-transform: scale(1.04);
    transform: scale(1.04);
}