列出项目,使其在光标悬停时表现得像链接一样 [英] List items to behave like links when cursor hovers

查看:150
本文介绍了列出项目,使其在光标悬停时表现得像链接一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些列表项,我希望当用户将鼠标悬停在它们上方时,光标可以从箭头变为手形。从某种意义上说,我希望它看起来像一个链接。

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?

推荐答案

将光标设置为指针。

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>

这篇关于列出项目,使其在光标悬停时表现得像链接一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆