本文介绍了鼠标移动到表格中的某一行时,将光标更改为手形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我的鼠标移过< table> $ << code>< tr>
时,如何将光标指针更改为手形c $ c
$ p $ < table class =sortableborder-style:>
< tr>
< th class =tname>名称< / th>< th class =tage>年龄< / th>
< / tr>
< tr>< td class =tname> Jennifer< / td>< td class =tage> 24< / td>< / tr>
< tr>< td class =tname>凯特< / td>< td class =tage> 36< / td>< / tr>
< tr>< td class =tname> David< / td>< td class =tage> 25< / td>< / tr>
< tr>< td class =tname>马克< / td>< td class =tage> 40< / td>< / tr>
< / table>
解决方案
>
.sortable tr {
cursor:pointer;
}
How do I change the cursor pointer to hand when my mouse goes over a <tr>
in a <table>
<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>
解决方案
You could do this without javascript actually.
.sortable tr {
cursor: pointer;
}
这篇关于鼠标移动到表格中的某一行时,将光标更改为手形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!