0
如何在qTip中的一個工具提示容器中獲得「Tooltiptitle」和「Tooltiptext」?當鼠標移出時,工具提示會在qTip中顯示tooltiptitle和tooltiptext,當鼠標移過新的span時,新的工具提示和tooltiptext會相應改變。請指導如何做到這一點?如何在div內容中應用qTip?
<script type="text/javascript" src="js/jquery.qtip.js"></script>
<body>
<table>
<tr class="row2">
<td class="col1">
<div class=""><span class="">Brad Pitt</span></div>
<div class="tooltiptitle">Brad Pitt</div>
<div class="tooltiptext">Angelina Jolie's husband. Father of six, husband of one. </div>
</td>
<td class="col2">
<div class=""><span class="">Jennifer Aniston</span></div>
<div class="tooltiptitle">Jennifer Aniston</div>
<div class="tooltiptext">Brad Pitt's Ex-Wife.</div>
</td>
</tr>
</table>
</body>