不能使用 fullcalendar 把日历的大小占据所有的宽度

问题描述

This is how the calendar appears

这是我的代码

<div id='calendar' ></div>

<script>

    $(function () {

        $('#calendar').fullCalendar({
            header: {
                left: 'prev,next today',center: 'title',right: 'month,agendaWeek,agendaDay'
            },aspectRatio: 1,initialView: 'dayGridMonth',editable: true,eventLimit: true,// allow "more" link when too many events
            dayClick: function () {
                alert('a day has been clicked!');
            },events: 'https://fullcalendar.io/demo-events.json'
        });

    });

</script>


#calendar {
max-width: 900px;
margin: 40px auto;
padding: 0 10px;}

我正在将 Flask 与 jquery 一起使用

我需要做什么?我没有发现其他人有这个问题

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)