Fullcalendar调度程序上的粘滞头

时间:2018-09-05 12:25:02

标签: javascript fullcalendar fullcalendar-scheduler

我为尝试使用完整的日历计划程序获取粘性标头而感到生气。 我尝试过

height: "parent"

我看到了很多帖子,但没有一个起作用。

但是有2个滚动条(一个用于主窗口,一个用于日历)。

是否有用于粘贴标头的解决方案?

谢谢

3 个答案:

答案 0 :(得分:1)

最后它与

类似
.fc-toolbar.fc-header-toolbar {
    position: sticky;
    top: 70px;
    z-index: 10;
    background: white
}

.fc-head-container.fc-widget-header {
    position: sticky;
    top: 108px;
    z-index: 10;
    background: white;
}

感谢您的帮助

答案 1 :(得分:0)

我不了解完整的日历计划程序,如果您希望将标头元素粘贴为一个,请在标头中应用以下CSS。

 position: fixed; top: 0; left:0; width: 100%;

尝试,让我知道。

答案 2 :(得分:0)

您可以使用它,这对我有用:

    .fc-timeline .fc-body .fc-scroller{
       height: 400px  !important;
    }
相关问题