fullcalendar backgroundColor属性 [英] fullcalendar backgroundColor property
本文介绍了fullcalendar backgroundColor属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图给事件添加背景颜色,但没有运气。
I'm trying to add a background color to an event but with no luck.
$('#calendar').fullCalendar('renderEvent', { id: 1, title: 'hello', start: selected_date, allDay: true, color: '#FF0000', backgroundColor: '#000000' }, false);
任何想法为什么这不起作用?边框颜色似乎工作,但不是backgroundColor
Any idea why this won't work? The border color seems to work but not the backgroundColor
推荐答案
如果添加两个样式表,那么backgroundColor将不起作用。 p>
If you add both the stylesheets then the backgroundColor will not work.
<link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.css" />
<link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.print.css")" />
删除fullcalendar.print.css后,backgroundColor决定正确呈现。
After removing the fullcalendar.print.css then the backgroundColor decided to render correctly.
这篇关于fullcalendar backgroundColor属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文