能够覆盖其他元素的样式,但不能覆盖列表事件点

时间:2021-06-19 17:17:27

标签: javascript html css fullcalendar fullcalendar-5

eventDidMount={function (info) {
    if (info.event._def.groupId === "2") {
        info.el.getElementsByClassName('fc-list-event-dot')[0].style.background = "green"
        info.el.getElementsByClassName('fc-list-event-graphic')[0].style.background = "green"
        info.el.getElementsByClassName('fc-list-event-title')[0].style.color = "yellow"
        info.el.style.backgroundColor = 'red'
    }
}}

我在 fullCalendar 中使用列表视图。

我无法覆盖 fc-list-event-dot 的样式,但其他元素可以正常工作。

我该怎么做?

0 个答案:

没有答案
相关问题