首页 > 其他 > 详细

图片的旋转

时间:2018-04-03 13:43:00      阅读:208      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            *{
                margin: auto;
                padding: 0;
            }
            #a1{
                width: 200px;
                height: 200px;
                border: 1px solid red;
                background-image: url(../3.28/1.jpg);
                background-size: 100% 100%;
                
                transition: 2s;
                
            }
            #a1:hover{
                transform: rotate(120deg);
            }
            #a2{
                width: 200px;
                height: 200px;
                border: 1px solid red;
                background-image: url(../img/3601.png);
                background-size: 100% 100%;
                
                transition: 2s;
                
            }
            #a2:hover{
                transform: translate(30px,30px)
            }
            #a3{
                width: 200px;
                height: 200px;
                border: 1px solid red;
                background-image: url(../img/3603.png);
                background-size: 100% 100%;
                
                
            }
            #a3:hover{
                transform: scale(1.5,1.5);
                transition: 2s;
                
            }
            
        </style>
    </head>
    <body>
        <div id="a1">
            
        </div>
        <div id="a2">
            
        </div>
        <div id="a3">
            
        </div>
    </body>
</html>
技术分享图片

 

图片的旋转

原文:https://www.cnblogs.com/hankai2735/p/8707723.html

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