将鼠标悬停在圆角的图像中。如何修复Chrome中的错误?

时间:2019-11-07 17:22:33

标签: html css google-chrome

enter image description here悬停时,边框的边缘变为正方形,然后将它们弄圆。在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%);
}

0 个答案:

没有答案