![](/img/trans.png)
[英]position a tooltip over a table cell with translate() in d3.js
[英]JS tooltip position in table cell
我正在使用JS工具提示库https://github.com/chrisdavies/tlite ,该库轻巧且易于设计。
除了在桌子内外,它都能正常工作。 我做了一个小提琴以便于演示: https : //jsfiddle.net/El4a/43gudyer/
因此,仅是为了在使用jsfiddle链接时必须添加代码:
<table>
<tr>
<td class="tooltip" title="I'm in the wrong position">This doenst work properly
</td>
</tr>
</table>
上面的方法不起作用。
我已经在github上打开了一个问题,但是也许Stackoverflow在寻找解决方案时会更快:)
尝试这个
table tr td{position:relative;} /** put this code in your stylesheet **/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.