我正在尝试为事件添加背景颜色,但没有运气.
$('#calendar').fullCalendar('renderEvent', { id: 1, title: 'hello', start: selected_date, allDay: true, color: '#FF0000', backgroundColor: '#000000' }, false);
Run Code Online (Sandbox Code Playgroud)
知道为什么这不起作用?边框颜色似乎有效,但不是backgroundColor
fes*_*fes 11
如果添加两个样式表,则backgroundColor将不起作用.
<link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.css" />
<link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.print.css")" />
Run Code Online (Sandbox Code Playgroud)
删除fullcalendar.print.css后,backgroundColor决定正确呈现.
| 归档时间: |
|
| 查看次数: |
8254 次 |
| 最近记录: |