zoukankan      html  css  js  c++  java
  • css3实现 依次出现三个点(一般用于提示加载中。。。 提交中。。。)

    <a href="javascript:" class="login">登录中<span class="dotting"></span></a>
     .dotting { display: inline-block; width: 10px; min-height: 2px;
                padding-right: 2px;
                border-left: 2px solid currentColor; border-right: 2px solid currentColor;
                background-color: currentColor; background-clip: content-box;
                box-sizing: border-box;
                -webkit-animation: dot 1.5s infinite step-start both;
                animation: dot 1.5s infinite step-start both;
                *zoom: expression(this.innerHTML = '...');  /*IE7 */
            }
            .dotting:before { content: '...'; } /* IE8 */
            .dotting::before { content: ''; }
            :root .dotting { margin-left: 2px; padding-left: 2px; } /* IE9+ */
    
            @-o-keyframes dot {
                25% { border-color: transparent; background-color: transparent; }
                50% { border-right-color: transparent; background-color: transparent; }
                75% { border-right-color: transparent; }
            }
            @-ms-keyframes dot {
                25% { border-color: transparent; background-color: transparent; }
                50% { border-right-color: transparent; background-color: transparent; }
                75% { border-right-color: transparent; }
            }
            @-moz-keyframes dot {
                25% { border-color: transparent; background-color: transparent; }
                50% { border-right-color: transparent; background-color: transparent; }
                75% { border-right-color: transparent; }
            }
            @-webkit-keyframes dot {
                25% { border-color: transparent; background-color: transparent; }
                50% { border-right-color: transparent; background-color: transparent; }
                75% { border-right-color: transparent; }
            }
            @keyframes dot {
                25% { border-color: transparent; background-color: transparent; }
                50% { border-right-color: transparent; background-color: transparent; }
                75% { border-right-color: transparent; }
            }
  • 相关阅读:
    Redis简单案例(二) 网站最近的访问用户
    Redis简单案例(一) 网站搜索的热搜词
    Basic Tutorials of Redis(9) -First Edition RedisHelper
    Basic Tutorials of Redis(8) -Transaction
    Basic Tutorials of Redis(7) -Publish and Subscribe
    Basic Tutorials of Redis(6)
    Basic Tutorials of Redis(5)
    Basic Tutorials of Redis(4) -Set
    Basic Tutorials of Redis(3) -Hash
    Basic Tutorials of Redis(2)
  • 原文地址:https://www.cnblogs.com/dongxiaolei/p/9182611.html
Copyright © 2011-2022 走看看