Sow nothing reap nothing

css3鼠标悬浮图片变大

已有2,272次关注

css3鼠标悬浮图片变大,下面是相对于的样式属性:
图片上一层:

{display: block;overflow:hidden;}

图片:

{
  width: 204px;height:131px;-webkit-transition: all .35s ease-in-out;
  -moz-transition: all .35s ease-in-out;
  -ms-transition: all .35s ease-in-out;
  -o-transition: all .35s ease-in-out;
  transition: all .35s ease-in-out;
}

鼠标悬浮层:

:hover img{
  -webkit-transform: scale(1.2); 
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2); 
}

已自动关闭评论