如何更改datecontrol的BackGround颜色?

时间:2012-06-13 11:28:29

标签: javascript jquery-ui datepicker

我使用以下样式来更改jquery.how中的datepicker颜色以更改Date背景颜色。这里它将显示1,2,3后面的蓝色,最多30.我需要更改蓝色吗?怎么做?

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

enter image description here

3 个答案:

答案 0 :(得分:0)

在“.ui-datepicker td”类

中添加颜色

例如

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

答案 1 :(得分:0)

试试这个,

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

DEMO

答案 2 :(得分:0)

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