gpt4 book ai didi

fullcalendar backgroundColor 属性

转载 作者:行者123 更新时间:2023-12-04 23:02:44 27 4
gpt4 key购买 nike

我正在尝试为事件添加背景颜色,但没有运气。

$('#calendar').fullCalendar('renderEvent', { id: 1, title: 'hello', start: selected_date, allDay: true, color: '#FF0000', backgroundColor: '#000000' }, false);

知道为什么这行不通吗?边框颜色似乎有效但背景色无效

最佳答案

如果您添加两个样式表,则 backgroundColor 将不起作用。

<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 决定正确渲染。

关于fullcalendar backgroundColor 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19292847/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com