使鼠标指针成为点击按钮的手

sla*_*dau 8 asp.net jquery

<td id="btnIcOld" style="text-align:center;">
    <img src="<%= VirtualPathUtility.ToAbsolute("~/img/chic/Load.png")%>" />
</td>

$('#btnIcOld').live('click', function () {
    window.location.href = 'https://extranetint.chathamfinancial.com/indications/swapcalculator';
});
Run Code Online (Sandbox Code Playgroud)

正如您在上面看到的那样,图像是我的按钮,这就是处理按钮点击的JQuery.问题是,当您将鼠标悬停在图像上时,它将保持为基本箭头指针.如何让它更改为一只手,以便用户知道他们可以点击它?

Qui*_*son 15

您可以编辑列的样式以cursor:pointer查看CSS游标属性.

<td id="btnIcOld" style="text-align:center;cursor:pointer;">
    <img src="<%= VirtualPathUtility.ToAbsolute("~/img/chic/Load.png")%>" />
</td>
Run Code Online (Sandbox Code Playgroud)