我们可以在 Rails 上动态更改事件日历大小吗?
我正在 Rails 2.3.8 上使用 事件日历 插件,我需要知道是否可以更改动态调整日历大小。例如,在一个页面中,我需要在整页中显示日历,在另一页中,我需要将相同的日历放在小 div 中。可以使用事件日历插件吗?
I'm using event calendar plug-in on rails 2.3.8 and I need to know whether I can change the calendar size dynamically. For example in one page I need to show calendar in full page in another page I need to put that same calendar in small div. Is it possible with the event calendar plug-in ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有真实的例子,我只能给出它如何工作的草图:
将视图包含在类似的内容中:
然后添加一个样式表,该样式表复制
event_calendar.css
的规则,但像在以下示例:因此,您修改的规则只会更好地匹配您想要缩小日历的变体。也许可以通过包括以下内容来确保日历更小:
Without the real example, I can only give a sketch how it could possibly work:
Include the view in something like:
Add then a stylesheet that copies the rules of
event_calendar.css
, but modifies them like in the following example:So your modified rules will match better only for your variant where you want to make the calendar smaller. Perhaps it is possible to ensure that the calendar is smaller by including: