如何更改Close Button
的颜色。到目前为止,我设法更改了Title Bar
和Body
的颜色,但是对于按钮,我无法更改它。
当前代码
$("#dialogTest").dialog({
autoOpen: false,
height: 'auto',
width: 'auto',
modal: true,
title: "<img src='../../Content/Images/icon/icons_02.png'/> RECORD HELP! MISSING DATA!",
buttons: {
Close: function () {
$(this).dialog("close");
$(this).css("background", "red");
}
}
}).css({ 'background-color': '#fceab0' }).prev(".ui-dialog-titlebar").css("background", "red");
答案 0 :(得分:0)
将关闭功能更改为:
Close: function () {
$(this).dialog("close");
$(this).css("background-color", "red");
}