微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jquery – FullCalendar V2事件标题在月视图中切断

升级到V2的 jquery fullcalendar之后,我注意到具有长标题的事件已被标题截断.

我通过添加CSS来解决这个问题,但现在又出现了一个问题,一个标题的事件似乎扩展了整个行,​​导致在相邻的日子中出现一个空格,这些空格具有短标题的事件.

添加了CSS

.fc-day-grid-event > .fc-content {
white-space: inherit; }

见:http://jsfiddle.net/uawsdebv/10/

十一月十二日的这两场活动,是由十一月十二号长时间的事件造成的.

我很失落 – 任何人都可以帮忙吗?

解决方法

基于jQuery Calendar的结构,实际上没有办法实现你想要的.这是因为事件在表行中.正如您对问题的第一条评论所述:

Between the V2.0.0 (I’m using this one) and the V2.2.6 (the one you’re using) the construction of the agenda moved from divs to tables. If you downgrade your CSS and JS to the V2.0.0,you’ll see that your problem disappears: jsfiddle.net/uawsdebv/12 I reckon this is more a work around than an answer. It may be possible to modify the css concerning the tag but I am not advanced enough in CSS to kNow what Could be a solution.

据我所知,你可能会看到这是解决这个问题的唯一方法.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐