我需要制作一个包含事件的日历,我决定使用react-big-calendar。但我需要制作不同风格的行。所以每一行应该在 30 分钟内,我用时间段完成了它,但我还需要删除默认边框并在每四行周围创建新边框。我怎样才能改变风格?
最佳答案
我找不到有关 npmjs.org 的任何信息site...并且由于 div 是动态创建的,我们可以使用 CSS 来获得此效果;
相关CSS:
.rbc-timeslot-group:nth-child(1), .rbc-timeslot-group:nth-child(2), .rbc-timeslot-group:nth-child(3), .rbc-timeslot-group:nth-child(23), .rbc-timeslot-group:nth-child(24)
{ background-color: lightpink; }
关于javascript - 更改 react 大日历中的行样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60141161/