【问题标题】:Cursor jumps above the element in ie9光标在ie9中的元素上方跳转
【发布时间】:2012-10-30 11:59:38
【问题描述】:

在我的 MVC3 应用程序中,当悬停在 -element 上方时,我正在切换光标。

这是javascript代码:

$('#print').hover(function () {
    var cursorUrl = 'url(@Url.Content("~/Content/img/print_24.ico")), auto';
    $(this).css('cursor', cursorUrl);
});

问题是:谷歌浏览器以应有的方式显示它。光标悬停,图标显示在鼠标位置上。但是 Internet Explorer 会在链接上方 0,5 - 1cm 处显示光标图标。我已经测试了 browsermodus IE7、IE8 和 IE9。但图标始终位于链接上方。

提前致谢。

【问题讨论】:

    标签: javascript html asp.net-mvc-3 internet-explorer google-chrome


    【解决方案1】:

    我在使用 .cur 光标文件时解决了这个问题(它也可以在 chrome 和 firefox 中正确显示)。

    为了创建这些 cur 文件,我使用了 RealWorld Cursor Designer

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-17
      • 1970-01-01
      • 1970-01-01
      • 2016-08-07
      • 2012-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多