简体   繁体   English

当我在 fullcalendar 中设置事件时,如何消除右侧的这个间隙

[英]When I set an event in fullcalendar how do I remove this gap on the right

这个差距

This gap right here highlighted in red这个差距在这里用红色突出显示

preferably the change is only in the day view最好只在日视图中进行更改

FullCalendar Version 4.3.1 FullCalendar 版本 4.3.1

override this style覆盖此样式

.fc-direction-ltr.fc-timegrid-col-events { margin: 0 2.5% 0 2px; }

either match the left and right gaps要么匹配左右间隙

.fc-direction-ltr.fc-timegrid-col-events { margin: 0 2px 0 2px; }

or have no gaps at all或者根本没有空隙

.fc-direction-ltr.fc-timegrid-col-events { margin: 0; }

make it day specific by changing to通过更改为

.fc-timeGridDay-view.fc-timegrid-col-events { margin: 0; }

Correct for FullCalendar v5适用于FullCalendar v5

-- --

update, this should work for v4更新,这应该适用于v4

override this覆盖这个

.fc-ltr.fc-time-grid.fc-event-container { margin: 0 2.5% 0 2px; }

to either match left and right左右匹配

.fc-ltr.fc-time-grid.fc-event-container { margin: 0 2px 0 2px; }

or no gaps at all或根本没有间隙

.fc-ltr.fc-time-grid.fc-event-container { margin: 0; }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM