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

当鼠标移过<table><tr> ,如何将光标指针更改为手形

<table class="sortable" border-style:>
  <tr>
    <th class="tname">Name</th><th class="tage">Age</th>
  </tr>
  <tr><td class="tname">Jennifer</td><td class="tage">24</td></tr>
  <tr><td class="tname">Kate</td><td class="tage">36</td></tr>
  <tr><td class="tname">David</td><td class="tage">25</td></tr>
  <tr><td class="tname">Mark</td><td class="tage">40</td></tr>
</table>

实际上,你可以不用JavaScript来做到这一点

.sortable tr {
    cursor: pointer;
}

I've searched bootstrap styles a bit and found this:

[role=button]{cursor:pointer}

So I assume you can get what you want with:

<span role="button">hi</span>

The easiest way I've found is to add

style="cursor: pointer;"

to your tags.

链接地址: http://www.djcxy.com/p/27404.html

上一篇: 如何让“可点击的手”出现在HTML文档中?

下一篇: 鼠标移动到表格中的某一行时,将光标更改为手形