FullCalendar列表视图,高度:自动无法按预期工作

时间:2017-03-11 15:25:38

标签: fullcalendar

我正在使用演示list-views.html并尝试设置height: auto,但这不起作用!日历有一个垂直滚动条。

$(document).ready(function() {

    $('#calendar').fullCalendar({
    height: 'auto',
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'listDay,listWeek,month'
        },

        // customize the button names,
        // otherwise they'd all just say "list"
        views: {
            listDay: { buttonText: 'list day' },
            listWeek: { buttonText: 'list week' }
        },

        defaultView: 'listWeek',
        defaultDate: '2017-02-12',
        navLinks: true, // can click day/week names to navigate views
        editable: true,
        eventLimit: true, // allow "more" link when too many events
        events: [
            {
                title: 'All Day Event',
                start: '2017-02-01'
            },
            ***continue-demo

1 个答案:

答案 0 :(得分:0)

我不知道这是否会有所帮助,但你是否包含了print.css?这可能会纠正它。另外在print css上一定要将media =“”设置为media =“print”。

相关问题