我想更改我的 FullCalendar 中 Days 的背景颜色
我怎样才能做到这一点..?
最佳答案
每天都有一个类,因此您可以将以下内容添加到样式表中:
.fc-sun{background-color:Red;}
.fc-mon{background-color:green;}
.fc-tue{background-color:blue;}
How can this be used to identify days before today?
您需要使用一些 jQuery:
$('.fc-today').prevAll('td').css('backgroundColor','yellow');
$('.fc-today').parent().prevAll().find('td').css('backgroundColor','yellow');
关于javascript - 如何在 FullCalendar 中更改今天之前的背景颜色...?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8615265/