在用户将鼠标悬停在我的图像之外后,我正在尝试将我的图像转换回原始大小..不知道在这里做什么..
我的 CSS
//doesn't work
.imgDiv img{
-webkit-transform:scale(1, 1);
-moz-transform:scale(1, 1);
-o-transform:scale(1, 1);
-ms-transform:scale(1, 1);
transform:scale(1, 1);
}
//enlarge the image but don't know how to shrink them back
.imgDiv:hover img{
-webkit-transform:scale(1.15, 1.15);
-moz-transform:scale(1.15, 1.15);
-o-transform:scale(1.15, 1.15);
-ms-transform:scale(1.15, 1.15);
transform:scale(1.15, 1.15);
}
html...
<div class='imgDiv'>
<img src='a.jpg' />
<img src='b.jpg' />
<img src='c.jpg' />
<img src='d.jpg' />
</div>
谢谢您的帮助....