jQuery fullCalendar set background color for cell

前端 未结 4 1391
半阙折子戏
半阙折子戏 2021-01-28 04:00

I want to set background-color for cell with date 2014-10-22. I find a solution:

         date = new Date(y,m,d);
        date = $.fullCalendar.formatDate(date,          


        
4条回答
  •  孤城傲影
    2021-01-28 04:22

    CSS solution helped me fix this:

    For Today date:-

    .fc-today {
            background-color: #ffffff;
     }
    
     .ui-widget-content .ui-state-highlight {
            background-color: #fff !important;
            background-image: none;
     }
    

    For Other days:

    .fc-day {
            background-color: green;
    }
    

    Good Luck.

提交回复
热议问题