如何更改jquery ui对话框按钮的颜色? [英] How to change the jquery ui dialog button color?
本文介绍了如何更改jquery ui对话框按钮的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要通过添加另一个css类来更改jquery ui对话框按钮颜色的颜色。
I need to change the color of jquery ui dialog button color by adding a class of another css.
$('.ui-dialog-buttonpane').find('button').addClass('cancelButton');
上面的代码行已用于更改css类但它没有帮助改变颜色。
The above line of code has been used to change the css class but it doesnt help to change the color.
示例代码放在以下小提琴中。
A sample code has been placed in the following fiddle.
http://jsfiddle.net/DOmEl/PCkQD/5/
有人可以帮我确定这里的问题吗?
Can anyone help me to identify what is the issue here?
推荐答案
试试
$('#message1').find('.ui-button').addClass('cancelButton');
和
.ui-button.cancelButton {
border: 1px solid #aaaaaa
/*{borderColorContent}*/
;
color: #FF0000
/*{fcContent}*/
;
}
演示:小提琴
这篇关于如何更改jquery ui对话框按钮的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文