javascript - 如何在 javascript 中使用 fullcalendar 查看当天的所有文本?

标签 javascript text fullcalendar

我需要做什么才能看到当天的所有文字?例如,对于 15 号,它显示:“Prueba tarea de Formulario”,但我只能看到“Prueba tarea de fo”。我需要显示所有文本。

这些是我的选择:

calendar: function(){

    var self = this;

    $('#calendar').fullCalendar({


    events: self.objCalendar.json,

        header: {

        left: '',
        center: 'prev title next',
        right: ''

        },

    eventClick:  function(event, jsEvent, view) {
        $('#modalTitle').html(event.title);
        $('#modalBody').html(event.description);
        $('#eventUrl').attr('href',event.url);
        $('#fullCalModal').modal();
    }

enter image description here

最佳答案

检查你的CSS是否有类似的东西:

.fc-event-time, .fc-event-title {
white-space: nowrap;
}

如果您删除此 this Fiddle 的 CSS 部分中的这些行,您将看到 FullCalendar 会根据标题长度调整事件大小。

关于javascript - 如何在 javascript 中使用 fullcalendar 查看当天的所有文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32567564/

相关文章:

python - 带 AnchoredText 的粗体文本(Python 和 Matplotlib)

c++ - 从 .txt 文件中提取信息的最佳方式

带转义序列和字符代码的 PDF 1.3 文本转换

javascript - 在 Angular 2+ 上重新渲染 FullCalendar

javascript - 防止 ng-click 触发确认对话框(在 Angular 1.2 RC3 中停止工作)

javascript - 为什么使用 `<button>` 作为 `&lt;input type="文件“>` not work, but ` <a>` 的委托(delegate)在 Safari 中有效?

javascript - 如何终止 Javascript 执行、退出/死亡/致命断言等?

javascript - FullCalendar ListView - 如何隐藏 "all-day"

php - 引导模式在 fullCalendar 插件中不起作用

javascript - 访问被拒绝 contentWindow iframe IE9