zoukankan      html  css  js  c++  java
  • 【CSS系列】网页头部进度条方式一

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>头部进度条</title>
      <style type="text/css">
        .loading{
           100%;
          height: 100%;
          position: fixed;
          top:0;
          z-index: 100;
          background: #FFFFFF;
        }
        .loading .pic{
          height: 5px;
          position: absolute;
          top:0;
          left:0;
          background: #F33;
        }
      </style>
      <script src="../js/jquery-3.2.1.js"></script>
    
    </head>
    <body>
    <div class="loading">
      <div class="pic"></div>
    </div>
    <header>
     <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4174868146,2956166581&fm=26&gp=0.jpg">
      <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2976427166,2178524819&fm=26&gp=0.jpg">
    </header>
    <script type="text/javascript">
      $(".loading .pic").animate({"10%"},100)
    </script>
    <section class="banner">
      <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1203727489,1880869354&fm=26&gp=0.jpg">
      <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2227804654,860253351&fm=26&gp=0.jpg">
    </section>
    <script type="text/javascript">
      $(".loading .pic").animate({"30%"},100)
    </script>
    <section class="about">
      <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3848479042,2603873849&fm=26&gp=0.jpg">
      <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1223109904,763334928&fm=26&gp=0.jpg">
    </section>
    <script type="text/javascript">
      $(".loading .pic").animate({"50%"},100)
    </script>
    <section class="pro">
      <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3280010440,2340064&fm=26&gp=0.jpg">
    </section>
    <script type="text/javascript">
      $(".loading .pic").animate({"80%"},100)
    </script>
    <section class="news">
      <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2687972484,527558523&fm=26&gp=0.jpg">
    </section>
    <script type="text/javascript">
      $(".loading .pic").animate({"95%"},100)
    </script>
    <footer>
      <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1173737556,2699518622&fm=26&gp=0.jpg">
    </footer>
    <script type="text/javascript">
      $(".loading .pic").animate({"100%"},100,function () {
        $(".loading").fadeOut();
      })
    </script>
    </body>
    </html>
  • 相关阅读:
    winfrom让窗体在屏幕右下角慢慢向上弹出
    winfrom的StatusStrip控件如何设置控件右对齐
    Winfrom通过Panel拖动无边框窗体
    优秀学习资源汇总
    hexo+github搭建博客跳坑
    博客园主题样式修改
    wxss无法调用本地资源图片
    微信小程序wx:for循环
    Git常用命令总结
    git push解决办法: ! [remote rejected] master -> master (pre-receive hook declined)
  • 原文地址:https://www.cnblogs.com/dream-to-pku/p/7295325.html
Copyright © 2011-2022 走看看