当前位置: 首页 > news >正文

做音乐的网站设计dede学校网站

做音乐的网站设计,dede学校网站,山西住房建设厅官方网站,杭州seo博客有哪些为你的网站加上Loading等待加载效果吧 | Loading页面加载添加教程 效果图 : 教程开始 新建一个loading样式css 将以下代码放进去 然后引用这个文件 code #Loadanimation{ background-color:#fff; height:100%; width:100%; position:fixed; z-index:1; ma…

为你的网站加上Loading等待加载效果吧 | Loading页面加载添加教程

效果图 :

教程开始

新建一个loading样式css
将以下代码放进去 然后引用这个文件

code

  1. #Loadanimation{
       background-color:#fff;
       height:100%;
       width:100%;
       position:fixed;
       z-index:1;
       margin-top:0px;top:0px;
       
    }
    #Loadanimation-center{
       width:100%;
       height:100%;
       position:relative;
       
    }
    #Loadanimation-center-absolute{
       position:absolute;
       left:50%;
       top:50%;
       height:200px;
       width:200px;
       margin-top:-100px;
       margin-left:-100px;
       
    }
    .xccx_object{
       -moz-border-radius:50% 50% 50% 50%;
       -webkit-border-radius:50% 50% 50% 50%;
       border-radius:50% 50% 50% 50%;
       position:absolute;
       border-left:5px solid #87CEFA;
       border-right:5px solid #FFC0CB;
       border-top:5px solid transparent;
       border-bottom:5px solid transparent;
       -webkit-animation:animate 2.5s infinite;
       animation:animate 2.5s infinite;
       
    }
    #xccx_one{
       left:75px;
       top:75px;
       width:50px;
       height:50px;
       
    }
    #xccx_two{
       left:65px;
       top:65px;
       width:70px;
       height:70px;
       -webkit-animation-delay:0.1s;
       animation-delay:0.1s;
       
    }
    #xccx_three{
       left:55px;
       top:55px;
       width:90px;
       height:90px;
       -webkit-animation-delay:0.2s;animation-delay:0.2s;
       
    }
    #xccx_four{
       left:45px;
       top:45px;
       width:110px;
       height:110px;
       -webkit-animation-delay:0.3s;
       animation-delay:0.3s;
       
    }
    @-webkit-keyframes animate{50%{
       -ms-transform:rotate(180deg);
       -webkit-transform:rotate(180deg);
       transform:rotate(180deg);
       
    }
    100%{-ms-transform:rotate(0deg);
       -webkit-transform:rotate(0deg);
       transform:rotate(0deg);
       
    }
       
    }
    @keyframes animate{50%{
       -ms-transform:rotate(180deg);
       -webkit-transform:rotate(180deg);
       transform:rotate(180deg);
       
    }
    100%{
       -ms-transform:rotate(0deg);
       -webkit-transform:rotate(0deg);
       transform:rotate(0deg);
       
    }
    }

第二步:

将以下代码填写入头部文件 一般都为 header.php

code

  1. <div id="Loadanimation" style="z-index:999999;">
    <div id="Loadanimation-center">
       <div id="Loadanimation-center-absolute">
           <div class="xccx_object" id="xccx_four"></div>
           <div class="xccx_object" id="xccx_three"></div>
           <div class="xccx_object" id="xccx_two"></div>
           <div class="xccx_object" id="xccx_one"></div>
       </div>
    </div>
    </div>
    <script>
    $(function(){
       $("#Loadanimation").fadeOut(540);
    });
    </script>

注意 注意 fadeOut 里面填写的是毫秒数

本loading可以自定义 网上也有很多css的 只要替换第二步的代码都可以成功(JS代码别替换)

http://www.yayakq.cn/news/155740/

相关文章:

  • 做完整的网站设计需要的技术网站技术说明书模板
  • 福州企业网站维护免费网站
  • 邢台建设规划网站融安有那几个网站做的比较好的
  • 快速搭建网站 开源wordpress配置报错
  • 网站建设维护总结验证码平台网站开发
  • 全球建站uc下载的视频禁止自动播放
  • 最超值的手机网站建设网络推广公司运营
  • dede网站禁止ip访问旅游网站建设和实现
  • 云南省火电建设公司网站360推广做网站
  • 网站备案之前需要建好网站吗国外的旅游网站做的如何
  • 网站建设常用六大布局一般使用的分辨率的显示密度是多少
  • 安徽php网站建设淘宝代运营公司一般怎么收费的
  • 怎么提升网站的排名成都科盛兴网站建设有限公司
  • 绵阳市建设工程监督网站syntaxhighlighter wordpress使用
  • 四川手机网站建设临汾哪里有做网站的
  • 360网站托管建设电脑网站
  • 怎么做相册网站网站优化软件推荐
  • 企业服务专区seo谷歌外贸推广
  • 做淘宝是不是要两根网站汉中 wordpress
  • 深圳网站建设商手机建网站花钱吗
  • 在北京哪家公司建网站合适怎么做一淘宝客网站吗
  • 做vi 设计国外网站企业建立网站主要包括那些流程
  • 蓝色网站设计湘潭市高新建设局施工报建网站
  • 无锡手机网站建设服务wordpress直接
  • 广州建网站要多少钱wordpress 图片模板
  • 学php网站开发多钱哪里有做标书
  • 网站流量突然增加网站页面关键词都一样
  • 电子商务网站平台建设策划wordpress 2018主题
  • 网站更换域名手机端公司网站怎么做
  • 黄山网站建设有哪些php的wordpress