Wait cursor over entire html page

后端 未结 14 1345
离开以前
离开以前 2020-12-02 14:19

Is it possible to set the cursor to \'wait\' on the entire html page in a simple way? The idea is to show the user that something is going on while an ajax call is being com

14条回答
  •  时光说笑
    2020-12-02 14:37

    Try the css:

    html.waiting {
    cursor: wait;
    }
    

    It seems that if the property body is used as apposed to html it doesn't show the wait cursor over the whole page. Furthermore if you use a css class you can easily control when it actually shows it.

提交回复
热议问题