[英]FullCalendar events show as thin line
I use FullCalendar Plugin from this website and I use this Calendar in a Bootstrap modal and the same Calendar in the main content of the page. 我从该网站使用FullCalendar插件,并且在Bootstrap模式下使用此Calendar,并在页面的主要内容中使用相同的Calendar。 Although in the main content of my page the calendar events are showing pretty well, but in the modal events are showing as very thin lines as picture below.
尽管在我页面的主要内容中,日历事件显示得很好,但是在模式事件中,显示的细线如下图所示。 I have tried to style them with CSS and the result was to resize event boxes but the titles never showed up
我尝试用CSS设置样式,结果是调整事件框的大小,但标题从未显示
.fc-event {
min-height: 25px;
}
The JQuery code to render the calendar is the below and the events come from a servlet as json 下面是呈现日历的JQuery代码,事件来自servlet,如json
$('#calendar').fullCalendar({
header: {
center: 'title',
left: '',
right: '',
},
events: src
,
eventClick: function (calEvent) {
viewEvent(calEvent.id);
$('#aModal').modal();
},
// put your options and callbacks here
});
.fc-content span{
display:block;
}
Event details are displaying as spans so display block 事件详细信息显示为跨度,因此显示块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.