Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Fullcalendar更改某些事件的颜色_Jquery_Fullcalendar - Fatal编程技术网

Jquery Fullcalendar更改某些事件的颜色

Jquery Fullcalendar更改某些事件的颜色,jquery,fullcalendar,Jquery,Fullcalendar,我需要更改Fullcalendar插件中某些事件的颜色 我在“events”对象的构造函数中尝试了“className”属性。然而,我无法改变颜色和css。我检查了萤火虫。td活动的css仍然使用默认css 我使用RegisterClientScriptBlock在codebehind中生成日历。也许这是个问题,但我不这么认为。你觉得怎么样?在使用jQuery的addClass之前,我已经完成了这个步骤,比如$(“+calEvent.id).addClass(“classwithdifferen

我需要更改Fullcalendar插件中某些事件的颜色

我在“events”对象的构造函数中尝试了“className”属性。然而,我无法改变颜色和css。我检查了萤火虫。td活动的css仍然使用默认css


我使用RegisterClientScriptBlock在codebehind中生成日历。也许这是个问题,但我不这么认为。你觉得怎么样?

在使用jQuery的addClass之前,我已经完成了这个步骤,比如
$(“+calEvent.id).addClass(“classwithdifferentics”)每个cal事件都有一个ID为的类。

对于类名“other”,我已经使用了以下CSS。起初,我缺少一个选择器,并且与您有相同的问题

.other, .fc-agenda .other .fc-event-time, .other a {
    background-color: #066333;/* background color */
    border-color: #066333;/* border color (often same as background-color) */
    color: #fff;/* text color */
}     

是的。我为这个问题创建了一系列新的css类。仅仅改变颜色是不够的。