jQueryUIの確認ダイアログウィンドウをカスタマイズしようとしています。ボタンから水色の外側の輝きを削除する方法(ホバー中)が見つかりません。テキストを閉じるボタンを「閉じる」から「x」に変更し、ボタンを閉じるホバーの背景を削除します。すべてのダイアログクラスに関するドキュメントはどこかにありますか?
これはコードです:
function fnComfirm(title, content, btnId) {
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-confirm p").text(content);
$("#dialog-confirm").dialog({
title: title,
resizable: false,
height: 200,
width: 486,
modal: true,
buttons: {
"OK": function() {
$( this ).dialog("close");
if (btnId) document.getElementById(btnId).click();
return true;
},
Cancel: function() {
$( this ).dialog("close");
return false;
}
}
});
$('body').css('overflow','hidden');
$("div[role=dialog] button:contains('Cancel')").css("background-image", "none").css("border", "0px solid #FFF");
$('.ui-dialog :button').blur();
}
HTML:
<div id="dialog-confirm" title="Are you sure?"><p></p></div>
含む:
<h:outputScript library="js" name="jquery-ui-1.8.min.js" />