Change cursor to hand when mouse goes over a row in table

后端 未结 11 1918
暗喜
暗喜 2020-12-22 22:59

How do I change the cursor pointer to hand when my mouse goes over a in a

相关标签:
11条回答
  • 2020-12-22 23:53

    Add cursor: pointer to your css.

    0 讨论(0)
  • 2020-12-22 23:59

    The easiest way I've found is to add

    style="cursor: pointer;"
    

    to your tags.

    0 讨论(0)
  • 2020-12-23 00:02

    Use the style cursor: pointer; in the CSS for the element you want the cursor to change on.

    In your case, you would use (in your .css file):

    .sortable {
        cursor: pointer;
    }
    
    0 讨论(0)
  • 2020-12-23 00:02

    Using css

    table tr:hover{cursor:pointer;} /* For all tables*/
    table.sortable tr:hover{cursor:pointer;} /* only for this one*/
    
    0 讨论(0)
  • 2020-12-23 00:02

    Example with styles inline:

    <table>
      <tr> <td style="cursor: pointer;">mouse me over: pointer</td> </tr>
      <tr> <td style="cursor: wait;">mouse me over: wait</td> </tr>
      <tr> <td style="cursor: zoom-in;">mouse me over: zoom-in</td> </tr>
    </table>

    0 讨论(0)
提交回复
热议问题