我无法设置Fullcalendar(2.3.2版)事件的背景颜色。我已经尝试了dayRender, color, backgroundColor没有成功。有什么问题吗?下面是我的代码:
$('#calendar').fullCalendar({
width: 750,
height: 550,
header: {
left: '',
center: 'title',
right: ''
},
year: 2015,
month: 6,
date: 13,
events: [{
title: 'test',
stato: 'NoResponseReceived',
subject: 'test ',
body: '',
location: '',
startdate: '14/7/2015 08:00:00',
enddate: '14/7/2015 08:30:00',
start: new Date(2015, 6, 14),
end: new Date(2015, 6, 14),
backgroundColor: '#ff0000'
}],
color: '#ff0000',
dayRender: function(calEvent, cell, date) {
cell.css('background-color', '#ff0000');
},
viewRender: function(view, element) {}
});
最后我的问题是我包含了fullcalendar.print.css.
文件中的背景事件被设置为!important并被覆盖不管我在代码里写了什么