Tam*_* N. 10 html javascript css cursor
我在这里遵循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>
Run Code Online (Sandbox Code Playgroud)
使用IE9和鼠标悬停查看时,它不会将光标更改为"手",而只是改为常规箭头.请指教.
谢谢!
Bol*_*ock 29
它应该是cursor: pointer;独立的,因为它hand是仅由旧版IE实现的专有值,因此是无效值.
但是,如果您真的关心IE 5.x,则可以切换两个属性,即(cursor: hand; cursor: pointer先手动).你的CSS仍然会失效,所以我宁愿你不要打扰.