2012-06-13 17 views
0

我使用以下样式来更改jquery.how中的日期选择器颜色以更改日期背景颜色。这里将显示1,2,3后面的蓝色。我需要更改该蓝色颜色?去做这个?如何更改datecontrol的BackGround颜色?

<style type="text/css"> 
.ui-datepicker { 
    background: #333; 
    border: 1px solid #555; 
    color: #EEE; 
} 
</style> 

enter image description here

回答

0

添加颜色 “的.ui-TD日期选择器” 类

例如

.ui-datepicker td { 
border: 0; 
padding: 1px; 
background: #f00; 
} 
+0

它不会改变颜色..它只会改变回地面不在1,2,3,uptp 30背景 – user

+0

你想只在特定日期显示颜色吗? –

+0

是的。我只想显示背后的日期 – user

0

试试这个,

.ui-state-default { 
    background-color: #ccc !important; 
    background-image: none !important; 
} 

DEMO

0
<style type="text/css"> 
    .ui-datepicker { 
     background: #999; 
     border: 1px solid #555; 
     color: #EEE; 
     } 
    </style>