.imgBox { width:200px; height:200px; overflow:hidden; } .imgBox img { width:200px; height:200px; transition:all .4s; -moz-transition:all .4s; -webkit-transition:all .4s; -o-transition:all .4s; } .imgBox img:hover { transform:scale(1.2); }
.4s ==> 控制动画时间