网页CSS光标手形无效问题
为什么单独这句:“<div style="cursor:hand">123</div> ”的hand无效,下面这个里面的hand又有效呢?相当郁闷啊啊~
两个浏览器:Chrome 15和IE9最新版都不行
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css2.css">
<script type="text/jscript" src="css2.js"></script>
<base target="_self">
</head>
<body>
<table id=table1 border=0 cellpadding=0 cellspacing=0><tr><td id=td1 align=left><a class=a2
href="http://www.dhtmlet.com" target="_blank">DHTMLET®</a></td><td id=td2 align=right>
<a class=a1 href="default.html">属性清单 </a>| 相关内容:<select onchange="doSel()">
<option value="1" selected>SEE ALSO</option>
<option value="1">------------------------------------------</option>
<option value="c_filter.html" class=ie> filter</option>
<option value="c_behavior.html" class=ie> behavior</option>
<option value="c_zoom.html" class=ie> zoom</option>
</select></td></tr></table>
<div id=div1>
<div id=div2 nowrap><span id=span1>cursor</span>版本:CSS2 兼容性:IE4+ NS6+ 继承性:无</div>
<br> <br><span class=span2>语法:</span>
<br> <br><b>cursor : </b><span class=span4><b> auto </b></span>|<b> crosshair </b>|<b> default </b>|<b> hand </b>|<b> move </b>|<b> help </b>|<b> wait </b>|<b> text </b>|<b> w-resize </b>|<b>s-resize </b>|<b> n-resize </b>|<b>e-resize </b>|<b> ne-resize </b>|<b>sw-resize </b>|<b> se-resize </b>|<b> nw-resize </b>
|<b>pointer </b>|<b> url (</b><i>url</i><b>)</b>
<br> <br><span class=span2>参数:</span>
<table border=0 cellpadding=0 cellspacing=1 bgcolor=#FEFAFA width=280><tr><td
width=25% bgcolor=#CCCFFF style="cursor:crosshair;padding:5px" align=center">crosshair</td><td
width=25% bgcolor=#CCCFFF style="cursor:default;padding:5px" align=center">default</td><td
width=25% bgcolor=#CCCFFF style="cursor:hand;padding:5px" align=center">hand</td><td
width=25% bgcolor=#FFC080 style="cursor:pointer;padding:5px" align=center">pointer</td></tr><tr><td
width=25% bgcolor=#CCCFFF style="cursor:move;padding:5px" align=center">move</td><td
width=25% bgcolor=#CCCFFF style="cursor:help;padding:5px" align=center">help</td><td
width=25% bgcolor=#CCCFFF style="cursor:wait;padding:5px" align=center">wait</td><td
width=25% bgcolor=#CCCFFF style="cursor:text;padding:5px" align=center">text</td></tr><tr><td
width=25% bgcolor=#CCCFFF style="cursor:w-resize;padding:5px" align=center">w-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:s-resize;padding:5px" align=center">s-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:n-resize;padding:5px" align=center">n-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:e-resize;padding:5px" align=center">e-resize</td></tr><tr><td
width=25% bgcolor=#CCCFFF style="cursor:ne-resize;padding:5px" align=center">ne-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:sw-resize;padding:5px" align=center">sw-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:se-resize;padding:5px" align=center">se-resize</td><td
width=25% bgcolor=#CCCFFF style="cursor:nw-resize;padding:5px" align=center">nw-resize</td></tr><tr><td
width=25% bgcolor=#CCCFFF style="cursor:auto;padding:5px" align=center>auto</td><td
width=75% bgcolor=#FFC080 style="cursor: url(img/1001.gif);padding:5px" align=center colspan=3>url(img/1001.gif)</td></tr></table>
<br> <br>您将鼠标在上方的表格内移动,就能看到本属性在您当前的软件环境下可以使用的样式。<br>以<span
style="background:#FFC080">这种颜色</span>为背景色的是IE5.5尚不支持的值。
<br> <br><span class=span2>说明:</span>
<br> <br>设置或检索在对象上移动的鼠标指针采用何种系统预定义的光标形状。
<br>对应的脚本特性为<b>cursor</b>。请参阅我编写的其他书目。
<br> <br><span class=span2>示例:</span>
<br> <br>p { cursor: text; } <br>a { cursor: pointer; }<br>body { cursor: url("mycursor.gif"), url("images/cursors/footcursor.jpg"), default; }
<br> <br> <br> <br>
<div id=div3>苏沈小雨制作保留所有权利<br><span id=span3>©2001 rain1977.comer . All rights reserved . Terms of Use . </span></div>
</div>
</body>
</html>
<!--
苏沈小雨制作保留所有权利
(c)copyright 2001 rain1977.comer (rainer@mail.hf.ah.cn)
http://www.dhtmlet.com
-->
[最优解释]
用pointer 兼容性要好些。
cursor:pointer
[其他解释]
将hand改为:pointer
也就是:
“<div style="cursor:hand">123</div> ”
改为:
“<div style="cursor:pointer">123</div> ”
[其他解释]
就是用pointer
欢迎加入.NET技术交流群(500人超级群) 群号:167065914(主群) 群管理招收中
[其他解释]
不是兼容性问题,试过了
[其他解释]
哎哎,应该是光标文件坏了~呵呵
[其他解释]
就是用pinter
欢迎加入.NET技术交流群(500人超级群) 群号:167065914(主群) 群管理招收中