简体   繁体   English

FullCalendar如何调整标头的单元格高度?

[英]FullCalendar How can I resize the cell height of my header?

I need to resize the cell height of my fullCalendar header. 我需要调整我的fullCalendar标头的单元格高度。 Currently there is too much white space (padding?) on the top and below of the month. 当前,本月的顶部和底部有太多空白(填充?)。 Here is what it currently looks like. 这是当前的样子。 在此处输入图片说明

I would like it to display more like this 我希望它显示更多这样

在此处输入图片说明

Actually the two images look pretty similar. 实际上,这两个图像看起来非常相似。 I guess I just don't want any white space above or below the month text. 我想我只是不想在月份文本上方或下方添加任何空格。 Please help if you can. 如果可以的话请帮忙。 Thanks 谢谢

You could try with this jQuery line after FullCalendar in instantiated:: 您可以在实例化FullCalendar之后尝试使用此jQuery行:

$(".fc-toolbar").css({"margin-bottom":0});

Or via a CSS rule (probably the best way): 或通过CSS规则(可能是最好的方法):

.fc-toolbar{
  margin-bottom:0 !important;
}

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

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