如何禁用 jQuery Fullcalendar 插件窗口大小调整?
我正在使用 FullCalendar 插件,它运行得很好。我想在调整浏览器窗口大小时禁用表格及其单元格的动态调整大小。有这种可能吗?
(我在文档中注意到“windowResize”回调在日历大小已经调整后触发,所以看起来这不会有帮助。)
I'm using the FullCalendar plugin and it's working very well. I would like to disable the dynamic resizing of the table and its cells when the browser window is resized. Is that a possibility?
(I noticed in the documentation the 'windowResize' callback fires after the calendar is already resized, so it looks like that won't help.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您指的是哪种观点?
请查看 weekMode 属性,将月视图和周视图修复为预定义的尺寸。
还有属性 height 和 contentHeight 可以帮助您冻结尺寸。
To which view are you referring?
Please have a look at the weekMode property to fix the month and week view to a predefined size.
Also the property height and contentHeight can help you to freeze dimensions.
您可以使用 CSS 来做到这一点 - 只需修复您正在其中构建日历的
div
的宽度,日历将不再随窗口调整大小。默认情况下,高度由宽高比设置 1.35 控制。You can do this with CSS - just fix the width of the
div
that you are building the calendar in and the calendar will no longer resize with the window. The height, by default, is controlled by the aspectRatio setting of 1.35.