【问题标题】:The cursor grab option is not working in Internet Explorer using CSS光标抓取选项在使用 CSS 的 Internet Explorer 中不起作用
【发布时间】:2017-09-08 23:16:29
【问题描述】:

为了拖动 div,我需要使用光标抓取选项。但它在 Internet Explorer 中不起作用。我尝试将光标与 url 选项一起使用。这在 Internet Explorer 中也不起作用。有没有办法改变光标设计?

【问题讨论】:

  • Grab 选项仅适用于 firefox 和 webkit。 .grabbable { 光标:移动; /* 如果不支持抓取光标,则回退 */ cursor: grab;光标:-moz-grab;光标:-webkit-grab;如果我们想要在 ie 中,我们必须如下设置光标图像。只有 cur 或 ani 文件扩展名可以在 ie 中使用。 .grabbable { cursor: url(images/my-cursor.cur), auto; }

标签: css internet-explorer


【解决方案1】:

您可以下载 Gmail 使用的光标。下载this one 并将其另存为“grab.cur”和this one,并将其另存为“grabbing.cur”,与您的 HTML 文档位于同一文件夹中。然后根据你想要抓取光标还是抓取光标在你的 HTML 文档中插入以下代码:

  • 抓取光标:style="cursor: url(grab.cur), move"
  • 抓取光标:style="cursor: url(grabbing.cur), move"

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2010-09-24
  • 2012-01-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-08
  • 2013-11-18
  • 2014-04-29
相关资源
最近更新 更多