• html5实现GIF图效果


     

     代码如下:

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title></title>
            <style type="text/css">
                *{
                    margin: 0;
                    padding: 0;
                }
                .box{
                     180px;
                    height: 300px;
                    margin: 50px auto;
                    overflow: hidden;
                    
                }
                .run{
                     180px;
                    height: 300px;                
                    background: url(images/images/charector.png) no-repeat ;//图片素材自己找。。。
                    -webkit-animation:run 700ms steps(7) infinite;
                }
                @-webkit-keyframes run{
                    from{
                        background-position: 0 0;
                    }
                    to{
                        background-position: -1260px 0;
                    }
                }
            </style>
        </head>
        <body>
            <div class="box">
                <div class="run">
                    
                </div>
                
            </div>
        </body>
    </html>

    本文转载自:http://www.cnblogs.com/qingxh/archive/2016/12/12/6164083.html

  • 相关阅读:
    基于mybatis的crud demo
    事务的隔离级别
    spring中ioc的实现
    spring中xml配置文件
    spring中AOP的实现
    mybatis框架
    基于Mapreduce的并行Dijkstra算法执行过程分析
    算法技巧:位运算 逻辑运算
    day04_09 while循环03
    day04_08 while循环02
  • 原文地址:https://www.cnblogs.com/Eton/p/6165851.html
Copyright © 2020-2023  润新知