jquery UI-Multiselect更改标题文本颜色

时间:2015-03-18 10:40:12

标签: jquery jquery-ui multi-select

我正在使用Jquery UI-Multiselect向我的下拉列表中添加功能。

我已设法更改标题的背景颜色,但无法更改文字颜色。

以下是多选的css:

.ui-multiselect { padding:2px 0 2px 4px; text-align:left;background:#fff;color:#000 !important;}
.ui-multiselect span.ui-icon { float:right }
.ui-multiselect-single .ui-multiselect-checkboxes input {      
position:absolute !important; top: auto !important; left:-9999px; }
.ui-multiselect-single .ui-multiselect-checkboxes label { padding:5px !
important }
.ui-multiselect-header { margin-bottom:3px; padding:3px 0 3px 4px; }
.ui-multiselect-header ul { font-size:0.9em; }
.ui-multiselect-header ul li { float:left; padding:0 10px 0 0; }
.ui-multiselect-header a { text-decoration:none; }
.ui-multiselect-header a:hover { text-decoration:underline }
.ui-multiselect-header span.ui-icon { float:left }
.ui-multiselect-header li.ui-multiselect-close { float:right; text- 
align:right; padding-right:0;}
.ui-multiselect-menu { display:none; padding:3px; position:absolute; z-
index:10000; text-align: left; }
.ui-multiselect-checkboxes { position:relative /* fixes bug in IE6/7 */; 
overflow-y:auto }
.ui-multiselect-checkboxes label { cursor:default; display:block; 
border:1px solid transparent; padding:3px 1px }
.ui-multiselect-checkboxes label input { position:relative; top:1px }
.ui-multiselect-checkboxes li { clear:both; font-size:0.9em; padding-
right:3px }
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label { text-
align:center; font-weight:bold; border-bottom:1px solid }
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a { 
display:block; padding:3px; margin:1px 0; text-decoration:none }/* remove 
label borders in IE6 because IE6 does not support transparency */
* html .ui-multiselect-checkboxes label { border:none }

1 个答案:

答案 0 :(得分:0)

这太老了,但是您可以像这样覆盖CSS

.ui-multiselect-all span { padding-left: 10px; color: #000000 !important}

!important仅取决于CSS文件的加载顺序。可能不必要