[英]Fullcalendar v5.7.0, no dividing lines between days in week mode
我有 Fullcalendar v5.7.0 但在周模式下的天之間沒有分界線。 一周中的當天也不會突出顯示。
初始化代碼
function showCalendar() {
if ($('#calendar__teacher-events').length) {
let calendarEl = document.getElementById('calendar__teacher-events');
let calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: {
left: 'title',
center: 'prev,today,next',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
initialDate: new Date(),
locale: 'en',
editable: false,
contentHeight: 'auto',
navLinks: true,
dayMaxEventRows: 5,
eventTimeFormat: {
hour: '2-digit',
minute: '2-digit',
meridiem: false
},
eventMaxStack: 3
});
calendar.render();
}
}
我正在嘗試其他主題的示例,但對我沒有任何幫助。 感謝您的任何幫助。
確實有其他 css 可以完成所有這些工作。 我檢查並解決了。
添加此樣式解決了我的問題,在我的苗條項目上使用 fullCalendar 時遇到了同樣的問題
.fc .fc-scrollgrid-section .fc-timegrid-cols table {
height: 100%;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.