網上還有其餘版本,可是對我來講都很差使,下面是我在Chrome上的代碼。overflow:hidden依然是不能正常使用,換成unset就能夠,讀者若是有更好的解決方案,請留言,謝謝。css
<figure> <img :src="item.photo" :alt="item.title"> </figure>
figure { border-radius: 10px; background: #2f3238; /*overflow: hidden;*/ overflow: unset; position: absolute; /* this breaks the overflow:hidden in Chrome/Opera */ /* this fixes the overflow:hidden in Chrome */ -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); } figure img { display: block; transition: opacity 1s, transform 1s; } figure:hover img { opacity: 0.8; transform: scale3d(1.1,1.1,1); }