当用户将鼠标悬停在表中的单元格上时,我正在使用SimpleTip生成工具提示。工具提示会显示,但会扩展单元格的大小。如何在不更改单元格大小的情况下将其悬停在单元格上方?
这是我目前拥有的:
<html>
<head>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.simpletip-1.3.1.js"></script>
</head>
<body>
<table border="1">
<tr><td id="test">foobar</td></tr>
</table>
<script type="text/javascript">
$("#test").simpletip({
fixed: true,
content: 'hello world!'
});
</script>
</body>
</html>
最佳答案
我建议您使用qTip(Simpletip的后继者),它适用于您的情况
尝试这个:
http://jsfiddle.net/ynhat/PydCK/
关于javascript - jQuery SimpleTip在表格上生成工具提示,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5334789/