zoukankan      html  css  js  c++  java
  • 进度条

    直接上代码,很简单可以直接看懂:

    <!DOCTYPE html>
    <html lang="en" >
    <head>
    <meta charset="UTF-8">
    <title>One Div Mail (Using transition)</title>

    <link rel="stylesheet" href="css/style.css">
    <style>
      main {
         100%;
        padding: 80px 0;
        /*display: flex;*/
        flex-wrap: wrap;
        justify-content: space-around; 
      }
      .progress-outer {
         40%; 
        height: 25px;
        line-height: 25px;
        margin-top: 20px;
        overflow: hidden;
        /*position: relative; */
      }    
      .progress-enter {  
        height: inherit;
        background: rgba(192, 192, 192,.5); 
      }
      .progress-bg {
        height: inherit; 
        background-color: rgba(0,0,255,.5);
        background-size: 16px 16px;
        -webkit-animation: panoramic 15s linear infinite;
        animation: panoramic 15s linear infinite;
      }
      .pc1{
         50%; 
        background-color: rgba(0,0,255,.5);
      }
      .pc2{
         30%; 
        background-color: rgba(0,0,0,.5);
      }
      .pc3{
         80%; 
        background-color: rgba(0,0,128,.5);
      }
      .pc4{
         50%; 
        background-color: rgba(0,0,255,.5);
      }
    .s1{
        margin-bottom: -20px;
    }
    </style>

    </head>
    <body>
    <main>
    <p class="s1">我的进度条</p>
        <div class="progress-outer">

          <div class="progress-enter">
            <div class="progress-bg pc1"></div>        
          </div>
        </div>
    <p class="s1">我的进度条</p>
        <div class="progress-outer">
          <div class="progress-enter">
            <div class="progress-bg pc2"></div>        
          </div>
        </div>
    <p class="s1">我的进度条</p>
        <div class="progress-outer">
          <div class="progress-enter">
            <div class="progress-bg pc3"></div>        
          </div>
        </div>
        <p class="s1">我的进度条</p>
        <div class="progress-outer">
          <div class="progress-enter">
            <div class="progress-bg pc4"></div>        
          </div>
        </div>
    </main>
    </body>
    </html>
     
    效果图如下:
     
  • 相关阅读:
    [C#] 主窗口嵌入子窗口(绑架窗口)
    【WP7】后台加载数据BackgroundWorker
    【WP7】手势操作与拨号键盘
    【算法】拼音匹配算法(支持多音字)
    【笔记】歌词显示问题
    【笔记】使用千千静听服务器下载歌词
    【WP7】代码创建png图片
    【WP7】自定义字体
    【WP7】对象序列化
    【WP7】控件倾斜特效
  • 原文地址:https://www.cnblogs.com/jayfeng/p/12116984.html
Copyright © 2011-2022 走看看