CSS 悬停时如何使链接具有戴手套的手鼠标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2738048/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make a link have the gloved hand mouse when hovering
提问by HollerTrain
Possible Duplicate:
Make mouse pointer a hand when hover over <li> element?
I have an input form button when you hover your mouse over it the mouse pointer doesn't change orientation. How can I make a link specify to show the gloved mouse finger pointer?
当您将鼠标悬停在输入表单按钮上时,我有一个输入表单按钮,鼠标指针不会改变方向。如何指定链接以显示戴手套的鼠标指针?
回答by Justen
cursor: pointer;
回答by Jonathan Czitkovics
I found This interesting siteabout mouse pointer styling for you. Scroll down to pointer W3C.
我为您找到了这个关于鼠标指针样式的有趣网站。向下滚动到指针 W3C。
cursor: pointer;
cursor: pointer;
You can hover to test the ones you like and it indicates what browsers it works with.
您可以悬停以测试您喜欢的那些,它会指示它与哪些浏览器配合使用。
回答by biancardi
this is another little example
这是另一个小例子
<style type="text/css">
a.clickable{
cursor: pointer;
cursor: hand;
}
</style>
<a href="#" class="clickable">Link</a>
回答by Roberto Hernandez
If the link is an anchor tag it should happen by default. You could use CSS to force it, and then it wouldn't matter what html tag it is.
如果链接是一个锚标签,它应该默认发生。你可以使用 CSS 来强制它,然后它是什么 html 标签就无关紧要了。
<a href="/Blah.htm" style="cursor: hand;">Blah</a>
(See Comments below for important info)
(重要信息见下方评论)