首页 文章

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

提问于
浏览
54

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

我试过这个css:

a.link {
    cursor: pointer;
}

还有这个:

a.link {
    cursor: pointer !important;
}

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

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

4 回答

  • 12

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

    如果你想让光标保持正常,你应该使用 cursor: default

  • 2

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

    或者使用css . 见example .

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

  • 129
    <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>
    
  • 2

    试试这个

    To Remove Hand Cursor

    a.link {
        cursor: default;
    }
    

相关问题