首页 > 其他 > 详细

鼠标经过按钮,图片缓慢变大效果

时间:2016-12-30 19:06:10      阅读:114      评论:0      收藏:0      [点我收藏+]
<style type="text/css">
    .box{
        width:50%;
        max-height: 500px;
        overflow: hidden;    
    }
    .box img{
        height: 500px;
        transition: all 1s ease 0s;
        -ms-transition: all 1s ease 0s; /* IE 9 */
        -o-transition: all 1s ease 0s; /* Opera */
        -moz-transition: all 1s ease 0s; /* Firefox */
        -webkit-transition: all 1s ease 0s; /* Safari 和 Chrome */
    }
    .box:hover img{
        transform: scale(2,2);
        -ms-transform:all 1s scale(2,2);    /* IE 9 */
        -webkit-transform: scale(2,2);    /* Safari 和 Chrome */
        -o-transform: scale(2,2);    /* Opera */
        -moz-transform: scale(2,2);    /* Firefox */
    }
</style>
<div class="box">
    <img src="2.jpg" alt="" />
</div>

 

鼠标经过按钮,图片缓慢变大效果

原文:http://www.cnblogs.com/fkcqwq/p/6237666.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!