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);
    
    再三须慎意,第一莫欺心
  • 相关阅读:
    Linux下MongoDB的基本操作
    PHP curl及并发curl封装函数实现
    根据ip地址获取地区信息的接口
    修改Samba服务的监听端口
    定时脚本更新svn文件
    第一次直面http的301跳转
    ASP.NET MVC 学习之路-6
    ASP.NET MVC 学习之路-5
    C#静态构造函数
    HTML5新特性学习-2
  • 原文地址:https://www.cnblogs.com/otsf/p/8617533.html
Copyright © 2011-2022 走看看