css – 跨浏览器的“cursor:pointer”

found these CSS attributes,使光标看起来像一只手:

> IE – style =“cursor:hand;”
> NS6 / IE6 – style =“cursor:pointer;”
> Cross browser – style =“cursor:pointer; cursor:hand;”

但是我注意到Stack Overflow在其CSS中使用“cursor:pointer”。
然而,这显然也在IE上工作。

那么…给了什么?什么是正确的,浏览器无关的方式来使用这个CSS项目?

解决方法

根据 Quirksmode,唯一的跨浏览器语法是:
element {
    cursor: pointer;
    cursor: hand;
}

他们还提供了有关光标的更多信息:

In the past the hand value was
Microsoft’s way of saying pointer; and
IE 5.0 and 5.5 only support hand.
Because it’s the cursor value that’s
used most often,most other browsers
have also implemented hand.

Since IE 6 and 7 support pointer,
there’s no more reason to use hand,
except when older IEs are part of your
target audience.

我认为您链接页面可能会与最新的浏览器有点过时。

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效