CSS 光标:手动不在 chrome 和 mozilla 上工作,但在 ie 上工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10708386/
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
Cursor : hand not working on chrome and mozilla but works on ie
提问by qwerty
Css cursor:hand; this is working in Internet Explorer, but not in other browsers...why is this?
CSS 光标:手;这在 Internet Explorer 中有效,但在其他浏览器中无效……这是为什么?
<input type="button" class="submit" value="submit" />
.submit {
background: transparent;
border-top: 2px solid #00F;
border-right: 0;
border-bottom: 2px solid #00F;
border-left: 0;
color: #00F;
display: inline;
margin: 0;
padding: 0;
cursor:hand;
}
回答by Simon Dorociak
It not working because the consortium is renamed it to pointer
. So change hand
to pointer
and it should work.
它不起作用,因为财团将其重命名为pointer
. 所以更改hand
为pointer
它应该可以工作。
回答by mborecki
You should use cursor: pointer
你应该使用 cursor: pointer
回答by Interrobang
"hand" is not a supported style in browsers other than IE.
IE 以外的浏览器不支持“hand”样式。