我在月 View 中为星期日设置了背景图像,但标题中的“星期日”日也设置了相同的背景,而其他标题日期设置正确。我看到表线程的 css 也有 .fc-sun .fc-mon 等,但我不知道如何从线程中删除这些类。我该如何解决这个问题?
我的 fullcalendar.css 中有这个:
.fc-widget-header{
background-color: #900;
}
.fc-sun {
background-image:url('../img/myImage.png');
background-repeat:repeat-x;
background-repeat:repeat-y;
}
最佳答案
将元素选择器添加到您的 css,因为“星期日”标题 (th) 和日期正文 (td) 具有 fc-sun 类。此解决方案应该适合您的情况。
td.fc-sun {
background-image:url('../img/myImage.png');
background-repeat:repeat-x;
background-repeat:repeat-y;
}
关于javascript - fc-sun 的全日历背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15085090/