问题:
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
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3214395