我在这里遵循W3C的标准http://www.w3.org/TR/CSS2/ui.html,在这里遵循http://www.quirksmode.org/css/cursor.html#note。但是,当鼠标悬停在上面时,元素不会显示在手中。请帮帮忙。
<a style="cursor:pointer;cursor:hand" onclick='javascript:window.open("http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php single_post_title(); ?>", "_blank", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,left=300,top=100,width=626,height=436")'>[image goes here]</a>当使用IE9和mouseover查看时,它不会将光标更改为“手”,而只是常规的箭头。请给我建议。
谢谢!
发布于 2010-12-03 15:31:38
它应该单独为cursor: pointer;,因为hand是一个仅由旧版本IE实现的专有值,因此是一个无效值。
但是,如果你真的关心IE 5.x,你可以交换两个属性,即(cursor: hand; cursor: pointer,hand优先)。你的CSS仍然是无效的,所以我建议你不要费心了。
发布于 2010-12-03 15:30:47
在您提供的链接中:
Value: [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherithand是无效的css
在另一个链接中提到了它,但是它只在ie中支持,不包括ie9测试版和opera。
如果您正在寻找具有指向食指的手,您希望pointer是css中提到的最后一只手。
发布于 2010-12-03 15:32:47
hand不是游标的有效值--它是早期的ie8。使用pointer。
http://www.w3schools.com/css/pr_class_cursor.asp
https://stackoverflow.com/questions/4343349
复制相似问题