Preventing cursor change on link click in Chrome

和自甴很熟 提交于 2019-12-02 03:01:46

This sounds like a CSS issue. Look for code like the following:

::-webkit-any-link:hover,
::-webkit-any-link:active { cursor: pointer; }

This will affect all links (like a[href]) but only in WebKit. Perhaps something else is preventing Safari from doing this.

UPDATE GIVEN EXPANDED QUESTION:

Now that we know more about the problem, namely that the cursor changes back to a pointer after clicking on an element fires off a javascript, I would say that this is a Chrome bug.

Please file a report at http://bugs.chromium.org/

You could explicitly set your target element's CSS to include --

#element {
    cursor: pointer;
}


See http://www.quirksmode.org/css/cursor.html#note if you have to support IE 5.5.

Adrián Pérez

In the meantime I'm thinking this desperate workaround:

  1. Browser detect Chrome
  2. Apply this tutorial
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!