Javascript CSS2光标不显示“;“手”;
我在这里和这里遵循W3C的标准。但是,鼠标悬停时,该元素不会显示在手上。请帮忙Javascript CSS2光标不显示“;“手”;,javascript,html,css,cursor,Javascript,Html,Css,Cursor,我在这里和这里遵循W3C的标准。但是,鼠标悬停时,该元素不会显示在手上。请帮忙 <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=
<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>
在您提供的链接中:
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 ] ] | inherit
Value:[[,]*[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]]继承
hand
无效
另一方面提到了链接,但它仅在ie中受支持,不包括ie9测试版和opera
如果您正在寻找带有指针指针的手,您希望指针
是css中提到的最后一只手它应该是光标:指针因为hand
是仅由旧版本IE实现的专有值,因此是无效值
但是,如果您真的关心IE 5.x,您可以切换这两个属性,即(光标:手;光标:指针
,首先是手)。不过,您的CSS仍将无效,因此我希望您不要麻烦。尝试省去“cursor:hand;”。根据您提到的文章,它只适用于InternetExplorer5。除非您正在为仍然使用该浏览器的公司开发内部web应用程序,否则我将不使用它。hand
不是游标的有效值——它是IE8-legacy。使用指针
经常检查您的DOCTYPE,IE需要处于符合标准的模式才能运行这类功能。只需给锚定一个href
属性就会容易得多,例如如果我使用“#”语法,在单击img链接后,它会将我“踢”到页面顶部,认为我的页面中有锚定。如果我使用href=“javascript:;”,鼠标悬停时看起来有点难看:(