是否可以删除悬停在链接上时出现的手形光标?(或将其设置为普通指针)

Cra*_*der 63 css cursor hyperlink

我想删除当您将鼠标悬停在超链接上时出现的手形光标.

我试过这个css:

a.link {
    cursor: pointer;
}
Run Code Online (Sandbox Code Playgroud)

还有这个:

a.link {
    cursor: pointer !important;
}
Run Code Online (Sandbox Code Playgroud)

当我将鼠标悬停在链接上时,它仍会改变.

有没有人有任何关于为什么会发生这种情况的想法或一个能让我实现这种效果的解决方案?

bev*_*qua 140

这正是cursor: pointer;应该做的.

如果您希望光标保持正常,您应该使用 cursor: default

  • 它有完整的浏览器支持:[你应该谷歌更多](http://www.quirksmode.org/css/cursor.html) (4认同)

jac*_*per 14

使用内联样式使用<a href="your link here" style="cursor:default">your content here</a>.看这个例子

或者使用css.看这个例子.

此解决方案兼容跨浏览器.


小智 5

<button>
  <a href="https://accounts.google.com/ServiceLogin?continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fpc%3Den-ha-apac-in-bk-refresh14&service=mail&dsh=-3966619600017513905"
     style="cursor:default">sign in</a>
</button>
Run Code Online (Sandbox Code Playgroud)


小智 5

尝试这个

移除手形光标

a.link {
    cursor: default;
}
Run Code Online (Sandbox Code Playgroud)