You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Fullcalendar资源时间线视图:过去时段背景色设置异常

FullCalendar资源时间线视图背景色问题及需求

我给FullCalendar中过去的空时段设置了背景色,效果已实现,但在**资源时间线视图(Resource Timeline View)**中出现异常:分隔资源的水平线被背景色遮挡,且无论使用什么颜色都会出现该问题。

当前使用的CSS代码

td.fc-day.fc-day-past {
    background-color: #EEEEEE !important;
}

更新后的尝试(问题依旧)

我尝试通过FullCalendar配置为过去单元格添加类(仅设置背景色),但问题没有解决,配置代码如下:

dayCellClassNames: function (arg) {
        if (arg.isPast) {
            return ['calendar-past-event-bg']
        }
    },
    slotLaneClassNames: function (arg) {
        if (arg.isPast) {
            return ['calendar-past-event-bg'];
        }
    }

额外需求咨询

能否不为整列着色,仅为最后一个资源以上的部分设置背景色?


内容的提问来源于stack exchange,提问作者Nite

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 03:10:57