【问题标题】:Issue when hiding the SharePoint 2013 calendar event tooltip隐藏 SharePoint 2013 日历事件工具提示时出现问题
【发布时间】:2020-12-03 10:29:53
【问题描述】:

我正在尝试隐藏/删除事件工具提示(当我们将鼠标悬停在日历视图中的任何事件上时会显示)。 为此,我使用下面的 css 类。

    .ms-acal-default-hover 
{
    display:none;
}

它隐藏了工具提示,但是当我们将鼠标悬停在事件上时它会产生闪烁。

【问题讨论】:

    标签: jquery events sharepoint calendar


    【解决方案1】:

    作为一种解决方法,您可以使用 jquery 删除类 ms-acal-item 的标题。下面的代码将帮助您实现这一目标:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script>
    $(function () {
         setInterval(function(){
            $('.ms-acal-item').attr('title','')
            },500);
    });
    </script>
    

    【讨论】:

    • 非常感谢迈克尔。这就是我想要的。
    猜你喜欢
    • 1970-01-01
    • 2013-12-17
    • 2016-10-15
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 2012-05-30
    • 2023-03-16
    • 1970-01-01
    相关资源
    最近更新 更多