2012-11-28 46 views
3

如何使事件标题只在fullcalendar 一行即使标题很长。默认情况下,它显示完整的标题,我希望像Google日历一样好看。谢谢。FullCalender事件标题只允许一行

+0

我指的是这个示例,但没有运气来修改它的https://github.com/lyconic/fullcalendar.viewmore – user1661740

回答

3

查找在以下项CSS文件:

.fc-event-time, .fc-event-title { 
padding: 0 1px;} 

,并修改它这样

.fc-event-time, .fc-event-title { 
padding: 0 1px; 
white-space: nowrap; 
} 

.fc-title { 
white-space: normal; 

}

+0

这只是帮助你的多行标题。抱歉。 – movsky

0

我可以用白色空间解决这个问题:nowrap;