悬停时,边框的边缘变为正方形,然后将它们弄圆。在mozilla中一切正常。如何解决此错误?
jq --arg HGP "$HGPATH" '.hostgroup.ref=$HGP' host.json
.advantage {
display: flex;
align-items: flex-end;
padding: 16px;
background: #D8DCE3;
border-radius: 20px;
overflow: hidden;
height: 100px;
width: 300px;
position: relative;
}
.advantage img {
position: absolute;
top: 0;
left: 0;
transition: transform .3s;
filter: grayscale(100%);
border-radius: 10px;
object-fit: cover;
height: 100%;
width: 100%;
}
.advantage:hover img {
transform: scale(1.1);
filter: grayscale(0%);
}