【问题标题】:Multiline titles in fullcalendar 2.1.0-beta1/2 in day grid日网格中全日历 2.1.0-beta1/2 中的多行标题
【发布时间】:2014-08-12 19:05:49
【问题描述】:

我刚刚将项目中的 fullcalendar 从 1.5.2 升级到 2.1.0-beta2。从那时起,由于这里引入了新的 CSS 样式,我的活动标题在第一行被删减(溢出隐藏):

https://github.com/arshaw/fullcalendar/commit/afe97d112a63c64f5e46a6ebfed144ccbf7a0a28

.fc-day-grid-event > .fc-content { /* force events to be one-line tall */ white-space: nowrap;

是否有任何理由将事件强制设为一行?如果我不想要这个,是否可以只覆盖这种样式,或者这会导致某处出现不可预测的行为? 我在文档中找不到任何内容,也无法使用 google。

【问题讨论】:

    标签: fullcalendar


    【解决方案1】:

    来自https://code.google.com/p/fullcalendar/issues/detail?id=1992

    这是禁用单行标题的方法

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

    【讨论】:

    • 这是一个旧答案,但这仍然适用于 v3.1.0
    【解决方案2】:

    在 v4 及更高版本中

    .fc-event-main-frame {
        white-space: normal;
    }
    

    示例

    【讨论】:

      猜你喜欢
      • 2020-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多