fullcalendar背景事件:背景颜色在Safari /火狐/ IE浏览器没有显示 [英] fullcalendar background events: background color not shown in Safari / Firefox / IE

查看:462
本文介绍了fullcalendar背景事件:背景颜色在Safari /火狐/ IE浏览器没有显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的是fullcalendar调度程序插件( http://fullcalendar.io/docs/scheduler/
当我使用code以下,在此背景事件是不是在Safari /火狐/ IE彩色银(无颜色在所有...)。它显示了银色完美的Chrome。

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?

在此先感谢!

亲切的问候,

Kind regards, Kim

推荐答案

您可以设置的的className 的活动属性

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
    }

然后在CSS:

.event_silver {
    background-color: silver;
}

亲切的问候,罗曼

Kind regards, Romain

这篇关于fullcalendar背景事件:背景颜色在Safari /火狐/ IE浏览器没有显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆