我已經添加了UI引導主題,以我的應用程序,大部分似乎工作得很好,但我似乎無法讓我的UI對話框按鈕來正確地呈現,如演示。看來,jQuery UI並沒有將這些類添加到按鈕中,以便按鈕被設置樣式。按鈕班jQuery UI的引導對話框沒有添加
使用Chrome開發者的按鈕應該呈現:
<button type="button"
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
role="button"
aria-disabled="false">
<span class="ui-button-text">Ok</span>
</button>
但是,當我創建我的對話:
$('#dialog').dialog({
title: 'My Text',
close: function (event, ui) {
myfunction();
},
bgiframe: false,
width: 860,
height: 500,
resizable: true,
modal: true,
buttons: {
Cancel: function() {
$(this).dialog("close");
}
}
});
的用戶界面對話框按鈕呈現爲這樣:
<button type="button">Cancel</button>
無類正在被添加,我找不到任何告訴我如果我需要執行其他方法或什麼交易是。
謝謝。
-V
編輯:對不起,我忘了引用我使用的版本:
引導:2.2.2 jQuery的:1.8.3 jQuery用戶界面:1.9.2
我不確定是否有可能。你需要使用JQuery對話框嗎?檢查此鏈接: http://forums.asp.net/t/1761495.aspx/1?can+we+use+jquery+ui+with+twitter+bootstrap+ –
您可能會發現這個有用的:HTTP:/ /addyosmani.github.com/jquery-ui-bootstrap/ –
是的,這是我使用的。它在標題和問題的第一行中提到:-) –