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