将悬停在一个单元格的议程WEEK + fullcalendar的效果 [英] Hover effect on one cell of agendaWeek + fullcalendar

查看:226
本文介绍了将悬停在一个单元格的议程WEEK + fullcalendar的效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,由Adam Shaw使用FullCalendar(。



问题来自2009年10月,所以似乎我们不应该让我们的希望,但几个用户建议不同的解决方法。其中一个是在我的代码中成功工作,所以可能值得检查。


Hi I am using FullCalendar by Adam Shaw (http://arshaw.com/fullcalendar/). I am using a month and agendaWeek view. I want to put in an hover effect when the user is hovering over a date in month view or a timeslot in agendaWeek view. I tried to change the css as follows:

.fc-widget-content:hover {
        background-color: red;
    }

This works for month view. File attached

However, the same code selects the whole line in the agendaWeek view when I just need one timeslot to be highlighted.

Example picture below shows the whole 1:00pm slot higlighted for everyday instead of just the timeslot in Wed 02-01 where the mousecursor was.

Any ideas how to achieve this.

Many thanks.

解决方案

You're not alone: many users of FullCalendar would like to see highlighting of individual time slots supported out of the box. There's an issue for this on Google Code.

The issue stems from October 2009, so it seems we shouldn't get our hopes up, but several users have suggested different workarounds. One of these is working successfully in my code, so it might be worth to check out.

这篇关于将悬停在一个单元格的议程WEEK + fullcalendar的效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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