是否有可能在FullCalendar中交替排列行背景颜色? [英] Is it possible to do alternating row background colours in FullCalendar?

查看:76
本文介绍了是否有可能在FullCalendar中交替排列行背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在fc-agenda-slot tr中应用了一个奇数/偶数类,但是问题在于左边/右边的cell边界位于下面的fc-agenda-days表中,所以当我在fc-agenda-slot tr的背景上设置背景。



FullCalendar中有一个选项可以允许交替排列颜色,或者有人找到了在外面执行此操作的方法FullCalendar?

解决方案

我相当确定这个问题没有解决方案。

问题的根源在于周视图是如何构建的,这可以说是对标记滥用的猖獗。它基本上是一个具有列的表,其中有一个表与行重叠。没有单独的单元格可供您控制仅单数行和列。当您为行隐藏列边界时,很可能是无意中的。据我所知,这是要么是插件的设计决定,要么是主要的监督。



在白天看来,这不是一个问题,因为你只有一列。


I applied an odd/even class to the fc-agenda-slot tr's, but the problem is the left/right "cell" border is on the fc-agenda-days table which is below, so it's not shown when I set the background on the fc-agenda-slot tr's.

Is there an option within FullCalendar itself that will allow alternating row colours or has someone found a way to do this outside of FullCalendar?

解决方案

I'm fairly certain there is no solution to this problem.

The root of the issue is how week view is structured, which is arguably a rampant abuse of markup. It is basically a table that has columns, which then has a table overlapping it that has rows. There aren't individual cells for you to control only singular rows and columns. When you color the row you are hiding the column borders, more than likely unintentionally. As far as I can tell, this was either a design decision of the plugin or a major oversight.

In day view, this isn't a problem as you only have a single column.

这篇关于是否有可能在FullCalendar中交替排列行背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆