我想在我的网站上添加悬停缩放功能,但是我看到其他示例,我的代码似乎相同,但图像的尺寸却不一样。有什么想法是什么问题呢?
.imgBox {
display: inline-block;
overflow: hidden !important;
transition: .3s ease-in-out
}
.imgBox {
display: inline-block;
overflow: hidden !important;
transition: .3s ease-in-out
}
.imgBox:hover {
opacity: 0.6;
filter: alpha(opacity=30);
transform: scale(1.3);
}
<div class="large-3 medium-6 small-12 columns">
<h2>Heading 1</h2>
<img class="imgBox" src="http://techmadeplain.com/img/2014/300x200.png" />
<p>Paragraph here</p>
</div>