简体   繁体   中英

bootstrap datetime picker change

I'm using bootstrap 3 datetime picker. How can I change colors for working days and weekdays also. Also I would like to change color for weekdays and months title.

I'm struggling to inspect css styles for bootstrap datetime picker since I cannot use firebug on this control (once I click on firebug icon the datetime picker goes invisible).

If you use the Bootstrap 3 Date time picker from Eonasdan , you can do :

For the week days :

 .bootstrap-datetimepicker-widget .day
 {
  color: red;
 }

For the week end days :

 .bootstrap-datetimepicker-widget .weekend
 {
  color: gold;
 }

For the month titles :

.bootstrap-datetimepicker-widget thead .picker-switch
{
 color: blue;
}

For the day titles :

.bootstrap-datetimepicker-widget thead .dow
{
 color: green;
}

you add css like in your current page

   .ui-datepicker-current-day
      {
           background: #83C948
      }
         /* today's background color */
    .ui-datepicker-today 
    {
      background: #83C948
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM