jquery mobile 等待加载的图标

jquery mobile 从一个页面到另一个页面的时候会自动调用一个 加载中 的图标,我想知道,这个加载图标,有没有显式调用的方法....我加载数据的时候 需要这个图标效果..
2026年09月24日 14:35
有1个网友回答
网友(1):

鼠标有很很多繁忙等待的图标,你可以参考;

代码也可以实现

document.writeln("");
document.writeln("#loading{width:99%;height:20px;background:#F2F2F3;padding:5px 0;margin:auto;border-radius:30px}");
document.writeln("#loading div{width:1px;height:20px;line-height:20px;font-size:10px;text-indent:1em;background:url(/jquery/load.jpg) repeat-x;border:#86B300 solid 1px;border-radius:10px}");
document.writeln("");
document.writeln("
 正在载入中...
");
$("#loading div").animate({width:"99%"},"slow")
$(document).ready(function () {$("#loading").fadeOut()});

相关问答