我想点击提交之后让鼠标显示为等待状态,怎样实现?

解决方案 »

  1.   

    用js做当点击时间执行的时候让document.body.style.cursor等待的样子看行不
      

  2.   

    <asp:Button ID="Button1" OnClientClick="javascript:ChangeCursor(this);" runat="server" Text="Button" /><script >
        
       function ChangeCursor(btn)
       { 
        btn.style.cursor = "wait";
            document.body.style.cursor = "wait";
        }
     </script>
      

  3.   


    System.Threading.Thread.Sleep(5000);
                this.Button1.Style.Remove("cursor");
    <asp:Button ID="Button1" runat="server" Text="Button"  OnClick="Button1_Click" OnClientClick="this.style.cursor='wait'"/>