自定义jQuery UI样式复选框

我正在使用没有图标的jQueryUI复选框,但无法找到如何使用CSS修改/覆盖复选框样式。

例如,我想在“已选中”按钮上添加红色边框,但以下CSS不起作用(我从DevTools Elements窗格中推断出了类):

.ui-checkboxradio-label .ui-corner-all .ui-button .ui-widget .ui-checkboxradio-checked .ui-state-active { border: 2px solid rgb(255,0,0) !important; } .checkbox-noicon .ui-checkboxradio .ui-helper-hidden-accessible { border: 2px solid rgb(255,0,0) !important; } 

我也尝试直接修改输入的“已检查”状态的样式,也没有效果:

 input[type=checkbox]:checked { border: 2px solid rgb(255,0,0) !important; } 

难道我做错了什么?

我cheked示例链接。 一个元素中的所有类,所以它应该像那样(没有空格):

 .ui-checkboxradio-label.ui-corner-all.ui-button.ui-widget.ui-checkboxradio-checked.ui-state-active{ border: 2px solid rgb(255,0,0) !important; } 

并且不要忘记努力刷新