阅读:3166回复:4
发现一个似乎是臭虫的问题
对 风格 → 光标 中的属性 手 似乎解释有误,把 手 解释成 文本 了。
用 “文档.获得标识符元素("标识符名").风格.光标” 得到的值确实是 手,但光标就不肯显示 手。 <font style="cursor:hand" id="asdf">hand</font><br> <font style="cursor:text">text</font><br> <font style="cursor:move">move</font><br> <font style="cursor:e-resize">e-resize</font><br> <font style="cursor:nw-resize">nw-resize</font><br> <font style="cursor:s-resize">s-resize</font><br> <font style="cursor:sw-resize">sw-resize</font><br> <font style="cursor:crosshair">crosshair</font><br> <font style="cursor:wait">wait</font><br> <font style="cursor:help">help</font><br> <font style="cursor:n-resize">n-resize</font><br> <font style="cursor:w-resize">w-resize</font><br> <font style="cursor:se-resize">se-resize</font><br> |
|
1楼#
发布于:2005-01-13 08:38
Cursor Information
What cursor types does your browser support? http://gemal.dk/browserspy/cursors.html W3C: the cursor property http://www.w3.org/TR/REC-CSS2/ui.html#cursor-props |
|
2楼#
发布于:2005-01-13 08:38
hand 是不符合css 标准的。 Gecko 是对的。
|
|
|
3楼#
发布于:2005-01-13 08:38
谢谢。已经在用。
开始也想到了是代码的不支持,但除了这个手型外其他经典光标类型全支持,同时也支持ani的光标图形,就没有了方向了。 |
|
4楼#
发布于:2005-01-13 08:38
不是hand 是 pointer
因為 Gecko 看不懂 hand 就不理,IE 看不懂 pointer 就處理 hand; |
|