zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    CSS3单选动画
    CSS3不一样的下拉选择框
    CSS3实现3d菜单翻转
    CSS3实现加载数据动画2
    CSS3实现加载数据动画1
    MySQL事务隔离级别和Spring事务关系介绍(转载)
    Elasticsearch7.5&Kibana7.5安装
    用nginx实现https请求转http请求(转)
    elasticsearch中多个字段聚合两种方法介绍
    window 同时安装python2和python3
  • 原文地址:https://www.cnblogs.com/Eton/p/6165851.html
Copyright © 2011-2022 走看看