0

カレンダーに8つのイベントを指定しています。Chromeでは、8つすべてがその日のカレンダーに表示されます。IEとFirefoxでは3つしか表示されませんか?私はcssを変更し、.jsファイルを精査して無駄にしようとしました。何か案は?

コード:

$('#calendar').fullCalendar({
        firstDay : 1,
        events: [
            {
                title  : 'event1',
                start  : '2012-10-01 11:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event2',
                start  : '2012-10-01 12:00:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event3 i say i say i say i say',
                start  : '2012-10-01 12:30:00',
                description: 'This is a cool event and I can\t wait to try it',
                allDay : false // will make the time show
            },
            {
                title  : 'event4',
                start  : '2012-10-01 1:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event5',
                start  : '2012-10-01 2:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event6',
                start  : '2012-10-01 3:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event7',
                start  : '2012-10-01 6:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event8',
                start  : '2012-10-01 7:30:00',
                description: 'This is a cool event'
            }
        ],

        eventClick: function(calEvent, jsEvent, view) {

            alert('Event: ' + calEvent.title + '\nDesc: ' + calEvent.description);
        },

        dayClick: function(date, allDay, jsEvent, view) {

            if (allDay) {
                alert('Clicked on the entire day: ' + date);
            }else{
                alert('Clicked on the slot: ' + date);
            }
        }
});
4

1 に答える 1

3

時間に数字が1つしかない場合は、24時間形式を使用し、接頭辞としてゼロを付ける必要があります。

http://jsfiddle.net/mH3pg/

于 2012-10-07T19:24:14.310 に答える