javascript - Bootstrap 3 工具提示箭头无法正确显示多行消息
问题描述
我有一个带有工具提示的链接。工具提示消息有点长,所以它显示在两行上。
<a href="/link/1234" class="tooltips" title="See the comment">Comment</a>
我的问题是工具提示的箭头显示在工具提示的中间,而不是底部(见截图)
附加信息:
- 链接在表格单元格中
- 我切换工具提示
$('.tooltips').tooltip({container: 'body'});
我该怎么做才能修复这个箭头?
解决方案
是否设置了标签属性?,必须渲染工具提示箭头位置
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button>
只需在标签中应用它:
<a href="/link/1234" data-toggle="tooltip" data-placement="left" class="tooltips" title="See the comment">Comment</a>
推荐阅读
- python - if: else: 和 if: continue 之间的区别
- android - 我正在使用 Sinch 发送即时消息,它在 OS 7.0 之前工作正常,但在 8.0 或更高版本上无法工作
- java - 当我使用来自 ReplaySubject 的 Observable 时阻止 ChannelHandlerContext
- c# - UWP - 使键盘快捷键调用函数而不使用控件?
- excel - 获得过滤条件的百分位数?
- ibm-doors - 在哪里可以查看 DOORS 中用户的最新编辑历史记录?
- sqlite - 在 Powershell 中使用 SQLite 提取日期在两天之间的数据
- python-2.7 - 从云功能触发数据流管道时,无法从主类执行超过 1 个功能
- r - 多次使用 %in% 的正确方法
- java - IntelliJ 在 Docker 中调试 Java 应用程序