我想將一些自定義樣式應用於jquery加載對話框,但無法找到文檔中的任何內容來執行此操作。我如何設計jquery mobile加載微調器
0
A
回答
5
當您找不到任何文檔時,您看起來在哪裏?源代碼。
我擡起頭看showPageLoadingMap
在https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.init.js。有關部分轉載於此:
showPageLoadingMsg: function() {
$html.addClass("ui-loading");
if ($.mobile.loadingMessage) {
var activeBtn = $("." + $.mobile.activeBtnClass).first();
$loader
.find("h1")
.text($.mobile.loadingMessage)
.end()
.appendTo($.mobile.pageContainer);
checkLoaderPosition();
$window.bind("scroll", checkLoaderPosition);
}
},
這裏,$html
僅僅是$('html')
參考,並$loader
較早,因爲這定義:
// loading div which appears during Ajax requests
// will not appear if $.mobile.loadingMessage is false
var $loader = $("<div class='ui-loader '><span class='ui-icon ui-icon-loading'></span><h1></h1></div>");
所以看起來你可以調整這些樣式元素/類適當。該CSS選擇器可能是這樣的:
body.ui-loader { ... }
div.ui-loader { ... }
div.ui-loader span.ui-icon-loading { ... }
div.ui-loader h1 { ... }
...etc...
0
相關問題
- 1. 如何在jQuery Mobile中創建多個加載微調器?
- 2. jQuery mobile 1.1RC - 在標頭中使用加載器/微調器
- 3. jQuery Mobile加載微調無法在移動設備上工作
- 4. 如何使我的jquery加載微調器自動?
- 5. 如何不斷顯示jQuery Mobile微調器超出頁面加載結束?
- 6. jQuery Mobile負載微調不顯示?
- 7. 在jQuery Mobile 1.3的Ajax調用中顯示頁面加載器(微調器)
- 8. Angular2 - 如何添加加載微調器?
- 9. 如何設計自定義微調器
- 10. 如何使用jquery mobile或jquery在我的html頁面內容中顯示頁面加載微調器
- 11. Jquery微調器加載值/刷新值
- 12. jQuery加載微調器完全加載所有元素加載
- 13. 製作加載微調器
- 14. Jquery微調覆蓋加載
- 15. jQuery Mobile顯示微調
- 16. Jquery mobile:加載微調不工作在JQM 1.4.4
- 17. 如何在jQuery中添加逗號ui微調計數器值
- 18. 如何在佈局加載之前設置微調器值
- 19. 在線加載圖片時如何設置進度微調器?
- 20. 在jQuery Mobile 1.1中進行大量處理之前顯示加載微調器?
- 21. 與jqtouch實現ajax加載微調器
- 22. 在Ajax調用上加載微調器
- 23. 如何添加一個加載「微調」
- 24. 微調加載Redux
- 25. 如何設計微調列表?
- 26. 如何實現材料設計微調
- 27. JqueryMobile加載器/微調器,同時加載另一頁
- 28. 顯示頁面加載Ajax調用jQuery Mobile中的調整器
- 29. 顯示加載微調頁面加載
- 30. jQuery ui微調器百分比計算
什麼jQuery的加載對話框你在說什麼? – 2012-01-18 04:18:41
$ .mobile.showPageLoadingMsg() – Brian 2012-01-18 04:33:13