zoukankan      html  css  js  c++  java
  • 加载中样式,用于异步

    <script>
        function setpageReload() {
            $('#pageReload').attr("style", "display:block;");
     
        }
     
        function setpageorver() {
            $('#pageReload').attr("style", "display:none;");
     
        }
    </script>
                <asp:Button ID="BtnSelt" runat="server" CssClass="Btn" Text="查询" OnClick="BtnSelt_Click" OnClientClick="setpageReload()" />
    
    <div id="pageReload" style="display: none;" class="div1">
        <center>
            <i class="fa fa-spinner fa-4x fa-spin"></i>
        </center>
    </div>

    <style>
        .Label1 {
            font-size: 16px;
            font-weight: bold;
            line-height: normal;
            letter-spacing: 2px;
        }
     
        .drop {
            float: left;
        }
     
        .Btn {
             100px;
            background-color: #7abce7;
            color: white;
            border-radius: 4px;
        }
     
        .div1 {
             100px;
            height: 100px;
            /*background:transparent;
         background:rgba(0,0,0,0.5);*/
            border-radius: 8px;
            position: fixed;
            margin: auto;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 9999;
        }
    </style>


    ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "js", "setpageorver();", true);
    
    再三须慎意,第一莫欺心
  • 相关阅读:
    基于windows的mysql读写分离和amoeba配置
    windows环境下mysql主从配置
    Mysql主从报错锦集
    Nginx流控
    windows_windows下的rsync
    Kafka+ZooKeeper高可用集群部署
    通过Nginx、Consul、Upsync实现动态负载均衡和服务平滑发布
    Redis性能指标监控
    MongoDB用户权限管理
    ZooKeeper原理详解及常用操作
  • 原文地址:https://www.cnblogs.com/otsf/p/8617533.html
Copyright © 2011-2022 走看看