2014-01-27 88 views

回答

15

通過檢查代碼,我發現你可以使用!important來覆蓋這些CSS規則。

代碼(我演示):

.select2-drop-active { 
    border: 1px solid rgba(210, 100, 10, 1.8); 
    border-top: none; 
} 

.select2-drop.select2-drop-above.select2-drop-active { 
    border-top: 1px solid rgba(210, 100, 10, 1.8); 
} 

.select2-container-active .select2-choice, 
.select2-container-active .select2-choices { 
    border: 1px solid rgba(210, 100, 10, 1.8); 
    outline: none; 

    -webkit-box-shadow: 0 0 10px rgba(210, 100, 10, 1.8); 
      box-shadow: 0 0 10px rgba(210, 100, 10, 1.8); 
} 

演示:http://jsfiddle.net/IrvinDominin/tmpLw/