谁能给我一个例子,每当我将 td
悬停在 table
中时添加工具提示。
工具提示的内容必须来自数据库记录。
示例:
如果我将 A name 悬停在表格上.. 工具提示必须显示他/她的信息。
最佳答案
使用 title
属性:
<table>
<tr>
<td>
<a href="#" title="John Smith lives in New York."> John Smith </a>
</td>
</tr>
</table>
关于jquery - 如何将工具提示添加到表中的 td,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4995534/