jquerymobile加载消息主题 [英] jquerymobile loading message theme

查看:56
本文介绍了jquerymobile加载消息主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对jQuery Mobile上的加载消息有疑问.

I have a question about the loading message on jQuery Mobile.

根据jQuery Mobile代码,默认情况下,加载消息主题为a:

By default, the loading message theme is a, according to jQuery Mobile code:

<div class="ui-loader ui-body-a ui-corner-all" style="top: 204.5px; ">...</div>

我想知道如何更改该div的默认主题,我无法弄清楚.

I would like to know how I can change the default theme of this div, I can't figure it out.

谢谢.

推荐答案

加载消息看起来不可修改.

It looks the loading message isn't themable.

查看源代码时,您将看到:

When you look in the source code you will see:

// loading div which appears during Ajax requests
// will not appear if $.mobile.loadingMessage is false
var $loader = $( "<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1></h1></div>" );

这意味着它总是选择ui-body-a

可能最安全的方法是覆盖div.ui-loader.ui-body-a,请参见 http://jsfiddle.net/N7Z9e/95 /

Probably the safest way is to override div.ui-loader.ui-body-a, see http://jsfiddle.net/N7Z9e/95/

这篇关于jquerymobile加载消息主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆