table 单元格中的 JS 工具提示位置
JS tooltip position in table cell
我正在使用 JS 工具提示库 https://github.com/chrisdavies/tlite,它轻巧且易于设置样式。
除了在 table 内,它工作得很好。我做了一个 fiddle 以便于演示:https://jsfiddle.net/El4a/43gudyer/
所以只是为了在我使用 js 时必须添加代码fiddle link:
<table>
<tr>
<td class="tooltip" title="I'm in the wrong position">This doenst work properly
</td>
</tr>
</table>
上面的方法不行。
我已经在 github 上提出了一个问题,但也许 Whosebug 会更快地找到解决方案 :)
试试这个
table tr td{position:relative;} /** put this code in your stylesheet **/
我正在使用 JS 工具提示库 https://github.com/chrisdavies/tlite,它轻巧且易于设置样式。
除了在 table 内,它工作得很好。我做了一个 fiddle 以便于演示:https://jsfiddle.net/El4a/43gudyer/
所以只是为了在我使用 js 时必须添加代码fiddle link:
<table>
<tr>
<td class="tooltip" title="I'm in the wrong position">This doenst work properly
</td>
</tr>
</table>
上面的方法不行。
我已经在 github 上提出了一个问题,但也许 Whosebug 会更快地找到解决方案 :)
试试这个
table tr td{position:relative;} /** put this code in your stylesheet **/