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

  • 相关阅读:
    Yum与list结合
    DNS辅助
    DHCP中继
    apache+SSL 搭建https
    vsftpd服务器
    根据Eclipse SVN changelog使用ANT自动打增量包
    SHELL 近期学习
    Tomcat源码学习一
    oracle笔记
    Linux 下安装 SVN服务器
  • 原文地址:https://www.cnblogs.com/qingxh/p/6164083.html
Copyright © 2011-2022 走看看