简体   繁体   中英

How to change event height in fullcalendar

I want to change the event height in Fullcalendar. These events are from my google calendar. I want the events in fullcanlendar to appear with no space in between. I dont know if it is a css or js issue.

在此处输入图片说明

打开fullcalendar.css或(... min.css),搜索类.fc-event并将此行添加到您的类中:

height:60px !important;

Set eventRender callbacks and change the CSS style like this:

eventRender: function(event, element) {
    element.css("font-size", "1.2em");
    element.css("padding", "5px");
}

Documentation

您也可以尝试使用scheduleEventMinHeight选项: https ://fullcalendar.io/docs/agendaEventMinHeight

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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