当用户将鼠标悬停在列表项上时,使光标成为手

做~自己de王妃 提交于 2020-04-06 12:20:05

问题:

I've got a list, and I have a click handler for its items: 我有一个列表,并且有一个用于其项目的点击处理程序:

<ul>
  <li>foo</li>
  <li>goo</li>
</ul>

How can I change the mouse pointer into a hand pointer (like when hovering over a button)? 如何将鼠标指针更改为手形指针(如将鼠标悬停在按钮上)? Right now the pointer turns into a text selection pointer when I hover over the list items. 现在,当我将鼠标悬停在列表项上时,该指针将变为文本选择指针。


解决方案:

参考一: https://stackoom.com/question/CxK3/当用户将鼠标悬停在列表项上时-使光标成为手
参考二: https://oldbug.net/q/CxK3/Make-the-cursor-a-hand-when-a-user-hovers-over-a-list-item
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!