【发布时间】:2020-10-19 13:32:31
【问题描述】:
我想要一个完全可见的全日历周网格,没有滚动条。根据文档https://fullcalendar.io/docs/height 我应该将高度设置为“自动”。这将适合网格,并且不会显示任何滚动条。但是在使用 timeGridWeek 视图时这样做,并非所有时间都可以访问。
我创建了一个小测试应用程序:https://codepen.io/olafxso/pen/LYZZmBN
在测试用例中,您可以看到它没有滚动条,但并非所有时隙都可见。
我已经发现我可以通过更改一些 css 来控制它:
.fc .fc-timegrid-slot {
height: 12px; /*This will change the actual timeslot height*/
}
.fc .fc-scrollgrid-section-body table {
font-size: 1px; /** This allows me to make a timeslot smaller then the original font-size */
}
但我认为更改 css 字体大小不是可行的方法。有没有人对此案有更好的方法?
谢谢!
【问题讨论】:
标签: html css fullcalendar fullcalendar-5