jQuery page loading spinner full screen

别等时光非礼了梦想. 提交于 2019-12-13 05:37:02

问题


I am using a code like this:

  $('body').addClass('ui-loading');
  $.mobile.loadingMessage = "Loading";
  $.mobile.showPageLoadingMsg();

for showing the jQuery page loading spinner, and it works, the spinner is shown somewhere in the middle of the screen. My problem is that while this is shown the controls which are not covered by it are enabled and can be used. I'm using this on multiple pages so I don't want to disable and after re-enable one by one each control from every page, so for me it would be very useful to have the loading spinner control to stretch over the entire page.

Any idea how this can be made? Thanks, Alex

来源:https://stackoverflow.com/questions/9259205/jquery-page-loading-spinner-full-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!