我正在與jQuery fullcalendar(版本2.7.1)一起工作。jQuery fullcalendar - 事件
這就是我想做的事:
現在我可以將背景設置爲紅色,但文本不會出現。這是我在做什麼:
var m = moment('2016-09-19');
$('#calendar').fullCalendar({
// put your options and callbacks here
left: 'title',
center: '',
right: 'prev,next',
weekends: false,
weekNumbers: true,
defaultView: 'month',
defaultDate: m,
events: [
{
start: '2016-09-19',
allDay : true,
rendering: 'background',
backgroundColor: '#F00',
title: 'full',
textColor: '#000'
},
{
start: '2016-09-20',
allDay : true,
rendering: 'background',
backgroundColor: '#F00',
title: 'full',
textColor: '#000'
}
]
});
這是它的外觀:
所以不添加文字...。顏色比指定的顏色要輕。
正如你所看到的我也沒有添加'今天'到我的右側導航,但它仍然被添加...。
我也想知道我怎麼能限制幾個月的導航。例如,他們只能選擇2016年9月,10月,11月。
任何人都可以幫我解決這個問題嗎?
我懷疑這CSS3的東西將努力在舊的瀏覽器。我建議你用jQuery的方式來做。 –
如果您指的是用於居中的轉換屬性,則可以使用這些替代屬性。例如,它們對我來說是最簡單的。 –