fullcalendar background events: background color not shown in Safari / Firefox / IE

喜你入骨 提交于 2019-12-25 18:32:09

问题


I use the fullcalendar Scheduler add-on (http://fullcalendar.io/docs/scheduler/) When I use the code below, this background event is not coloured silver in Safari / Firefox /IE (no color at all...). It shows the silver color perfectly in Chrome.

$('#calendar').fullCalendar({
events: [
    {
        start: '2016-04-01 06:00',
        end: '2014-04-01 10:00',
        rendering: 'background',
        color: 'silver',
        resourceId: 1
    }
]

});

How can I fix this issue?

Thanks in advance!

Kind regards, Kim


回答1:


You can set the className attribute of Events

events: [
    {
        start: '2016-04-01 06:00',
        end: '2014-04-01 10:00',
        rendering: 'background',
        className: event_silver,
        resourceId: 1
    }

and then in css:

.event_silver {
    background-color: silver;
}

Kind regards, Romain



来源:https://stackoverflow.com/questions/37115291/fullcalendar-background-events-background-color-not-shown-in-safari-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!