fullcalendar - 完整日历导航链接未显示

标签 fullcalendar

我正在尝试设置一个完整日历来显示公共(public) Google 日历中的事件。我已经设置了一个测试日历,它显示了事件。但是,导航链接根本不显示?

这是我的代码:

<html>
<head>
<link rel="stylesheet" type="text/css" href="https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css">
<script src="https://fullcalendar.io/js/fullcalendar-3.4.0/lib/moment.min.js"></script>
<script src="https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/locale/fi.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/gcal.js'></script>
<script>
    $(document).ready(function() {          
        $('#calendar').fullCalendar({
        header: {
                left: 'prev,next,today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay,listWeek'
            },
        weekNumbers: true,
        navLinks: true,
        googleCalendarApiKey: 'working api key here',
        events: {
            googleCalendarId: '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2b3b0b192b5a0bda7a2fcb1b3beb7bcb6b3a0fcb5bdbdb5beb7fcb1bdbf" rel="noreferrer noopener nofollow">[email protected]</a>'
        }
    });
});
</script>
<title>
test calendar</title>
</head>
<body>
<center>
<div id='calendar'></div>
</center>
</body>
</html>

最佳答案

如果您想使用fullcalendar.print.css,那么您必须在样式表中添加media="print",如下所示

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" media="print">

另一个选项是您也可以从页面中删除此 fullcalendar.print.css 样式表(但如果您还想在打印屏幕上看到日历,则不要删除fullcalendar.print.css)

关于fullcalendar - 完整日历导航链接未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44020204/

相关文章:

javascript - 在 FullCalendar 中使用单选按钮进行 JQuery 过滤

javascript - 如何使用全日历 AJAX 请求的 token 刷新 header

jquery - 带有 Twitter Bootstrap 的全日历?

javascript - 使用 Firebase 更新 FullCalendar 新事件

java - Struts2 在带有 &quote 的 jsp 文件上显示 json 数据

fullcalendar - 检测点击背景事件

fullcalendar - Fullcalendar 的彩色周末

jquery - 在全日历表格单元格中注入(inject)微调器

javascript - FullCalendar:如何使用 DayRender 函数在每月的每一天显示图标?

java - 无法将类型 'java.lang.String' 的属性值转换为所需类型 'java.util.Date'