本文介绍了FullCalendar标头按钮丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 fullCalendar ,如下所示并定义了标头部分,除标头仅显示标题外,其他一切正常下一个,上一个,月视图等按钮缺失
I am using fullCalendar as belowand have defined header section, everything works ok except header where it's only showing title butnext, prev, month view etc buttons are missing
如果我删除标题"一词,它将删除标题,因此它似乎在做某事,但仅不显示按钮,有什么主意吗?我错过了什么吗?我的代码如下所示:
if I remove word 'title' it removes title so it seems to be doing something but just not showing buttons, any ideas why? am I missing something?my code looks like below:
jQuery('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
eventSources:
[{
url: url,
color: '#ffdce5',
textColor: 'black'
}]
})
推荐答案
遇到了同样的问题,我怀疑您的问题是您缺少了 fullcalendar.print.css
样式表链接.
Having just had the same problem I suspect your issue is that you're missing the media="print"
attribute on the fullcalendar.print.css
style sheet link.
这篇关于FullCalendar标头按钮丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!