摘要
问题
我怎样才能摆脱这种差距?它在默认情况下很明显,但在图像缩放时悬停更糟
body {
background: #ebebeb;
}
.item {
width: 500px;
height: 700px;
float: left;
background: #fff;
}
.item:hover img {
transform: scale(1.1);
}
.image {
width: 100%;
height: auto;
background: #999;
position: relative;
overflow: hidden;
}
.image .border {
width: 100%;
height: 50px;
position: absolute;
left: 0;
bottom: 0;
border-radius: 5% 5% 0 0;
background: #fff;
}

<div class="item">
<div class="image">
<img src="https://www.w3schools.com/css/img_fjords.jpg"/>
<div class="border"></div>
</div>
</div>
&#13;
此处链接到codepen示例:http://codepen.io/anon/pen/RKddOB