zoukankan      html  css  js  c++  java
  • css 鼠标移上去图片放大效果

    img {  

      100px;

      height:100px;

      transition: all 0.5s;  

      -moz-transition: all 0.5s; /* Firefox 4 */  

      -webkit-transition: all 0.5s; /* Safari 和 Chrome */  

      -o-transition: all 0.5s; /* Opera */

    }

    img:hover {      

      transform: scale(1.1);     

      -ms-transform: scale(1.1);  /* IE 9 */  

      -moz-transform: scale(1.1);  /* Firefox */  

      -webkit-transform: scale(1.1); /* Safari 和 Chrome */  

      -o-transform: scale(1.1);

    }

    transform: all 0.5;  all指的是width 和 height 同时变换,变换时间为0.5s,   

    transform: scale(1.1)指在原来的基础上放大1.1倍;

  • 相关阅读:
    学习Python第五天
    学习Python第三天
    Mongodb
    JMS links
    笔记整理
    a* products
    String
    business knowledge
    [Java coding] leetcode notes
    [Java Basics3] XML, Unit testing
  • 原文地址:https://www.cnblogs.com/wuhaidong-me/p/6774309.html
Copyright © 2011-2022 走看看