我在HTMl表中有这段代码
<tr id="${item.deviceId}" class="odd" onclick="window.location.href='<c:url value='/devices/app-${item.applicationId}' />'">
但是当我把鼠标放在桌子上时,我看不到光标
答案 0 :(得分:3)
尝试style =&#34; cursor:pointer&#34 ;;
<tr id="${item.deviceId}" style="cursor:pointer" class="odd" onclick="window.location.href='<c:url value='/devices/app-${item.applicationId}' />'">
答案 1 :(得分:1)
如果我理解你,你可以在CSS中将它添加到元素中以强制手形指针图标:
cursor: pointer;
答案 2 :(得分:1)
为cursor: pointer
类
odd
属性
示例:
.add{
cursor: pointer;
}
答案 3 :(得分:0)
add "cursor: pointer" in line style or you can mention it in css and use it.