<tr>
<th data-field="detailId" onmousemove="hand(this)">标识</th>
</tr>
js:
function hand(tdObj){
tdObj.style.cursor = "pointer";
}
style=“cursor:pointer” 是css的一种样式,作用是当鼠标移动到该单元格上时,鼠标会由箭头形状改为手的形状。
<td style="cursor:pointer">
cursor:hand 与 cursor:pointer 的效果是一样,都像手形光标。但用FireFox浏览时才注意到使用cursor:hand在FireFox里并不支持。
cursor:hand :IE完全支持。但是在firefox是不支持的,没有效果。
cursor:pointer :是CSS2.0的标准。所以firefox是支持的,但是IE5.0既之前版本不支持。IE6开始支持。