List items to behave like links when cursor hovers

主宰稳场 提交于 2019-12-24 06:47:31

问题


I have some list items where I want the cursor to change from an arrow to a hand when a user hovers over them. In a sense I want it to look like a link. How can I do this?


回答1:


Set the cursor to a pointer.

<style type="text/css">
.fakeLink{cursor:pointer}
</style>

<ul>
<li class='fakeLink'>This is not really a link</li>
</ul>


来源:https://stackoverflow.com/questions/9495578/list-items-to-behave-like-links-when-cursor-hovers

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