我正在使用演示list-views.html并尝试设置height: auto
,但这不起作用!日历有一个垂直滚动条。
$(document).ready(function() {
$('#calendar').fullCalendar({
height: 'auto',
header: {
left: 'prev,next today',
center: 'title',
right: 'listDay,listWeek,month'
},
// customize the button names,
// otherwise they'd all just say "list"
views: {
listDay: { buttonText: 'list day' },
listWeek: { buttonText: 'list week' }
},
defaultView: 'listWeek',
defaultDate: '2017-02-12',
navLinks: true, // can click day/week names to navigate views
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [
{
title: 'All Day Event',
start: '2017-02-01'
},
***continue-demo
答案 0 :(得分:0)
我不知道这是否会有所帮助,但你是否包含了print.css?这可能会纠正它。另外在print css上一定要将media =“”设置为media =“print”。