jQuery fullCalendar设置单元格的背景色 [英] jQuery fullCalendar set background color for cell
本文介绍了jQuery fullCalendar设置单元格的背景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为日期为2014-10-22的单元格设置背景颜色.我找到了解决方法:
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, 'yyyy-MM-dd');
$('.fc-day[data-date="'+ date +'"]').css('background-color', 'black');
但是它不起作用.有什么想法吗?
but it does not work. Have some ideas?
推荐答案
CSS
解决方案帮助我解决了此问题:
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;
}
祝你好运.
这篇关于jQuery fullCalendar设置单元格的背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文