2011-10-14 8 views
1

FullCalendar Homepage에서 똑같은 코드를 복사하려고했습니다. 그래서 난이 : 내 사이트가 제대로 fullcalendar.cssfullcalendar.print.css가 포함되어 있는지 확인한올바르게 jquery fullcalendar 이벤트를 가져올 수 없습니다.

$(document).ready(function() { 

    var date = new Date(); 
    var d = date.getDate(); 
    var m = date.getMonth(); 
    var y = date.getFullYear(); 

    $('#calendar').fullCalendar({ 
     header: { 
      left: 'prev,next today', 
      center: 'title', 
      right: 'month,agendaWeek,agendaDay' 
     }, 
     editable: true, 
     events: [ 
       { 
        title: 'All Day Event', 
        start: new Date(y, m, 1) 
       }, 
       { 
        title: 'Long Event', 
        start: new Date(y, m, d - 5), 
        end: new Date(y, m, d - 2) 
       }, 
       { 
        id: 999, 
        title: 'Repeating Event', 
        start: new Date(y, m, d - 3, 16, 0), 
        allDay: false 
       }, 
       { 
        id: 999, 
        title: 'Repeating Event', 
        start: new Date(y, m, d + 4, 16, 0), 
        allDay: false 
       }, 
       { 
        title: 'Meeting', 
        start: new Date(y, m, d, 10, 30), 
        allDay: false 
       }, 
       { 
        title: 'Lunch', 
        start: new Date(y, m, d, 12, 0), 
        end: new Date(y, m, d, 14, 0), 
        allDay: false 
       }, 
       { 
        title: 'Birthday Party', 
        start: new Date(y, m, d + 1, 19, 0), 
        end: new Date(y, m, d + 1, 22, 30), 
        allDay: false 
       }, 
       { 
        title: 'Click for Google', 
        start: new Date(y, m, 28), 
        end: new Date(y, m, 29), 
        url: 'http://google.com/' 
       } 
      ] 
    }); 

}); 

.

하지만, 내 페이지로 온다 :

http://dl.dropbox.com/u/6753359/badcalendar.PNG

공지 사항 내 이벤트는 자신의 예처럼 파란색이 아니다. 이벤트에 color 속성을 설정하려고했는데 이벤트를 className에게 주려고했지만 아무 것도 내 이벤트에 색상이 없습니다.


편집 : 내 "하루 종일 이벤트"이벤트를 검사 할 때 은, 크롬 나를 보여줍니다 다음 div의 : http://dl.dropbox.com/u/6753359/badcalendarEventElement.PNG

그리고 지금까지 스타일을 사용하고, 크롬은 저를 보여줍니다

http://dl.dropbox.com/u/6753359/badcalendarCss.PNG


아무도 내가 이것을 고칠 수있는 방법을 알고 있습니까?

<link rel="stylesheet" href="fullcalendar.print.css" type="text/css" media="print" /> 

인쇄 스타일 시트는 화면 스타일 시트를 무시한다 "인쇄"미디어 = 추가

답변

4

시도.

+0

* facepalm *. 고마워. – KallDrexx

+0

이것이 나를 위해 일할 때 나는 환호했다. 고맙습니다!! – Lurk21

관련 문제