when I use data-toggle="tooltip"
with the tag <h>
, it works normally:
<h3 data-toggle="tooltip" data-placement="right"
title="example"> example </h3>
but when I try to use with <a>/<td>/<span>
, this does not work normally, it just shows the normal tool-tip, without any style.
I'm starting with JavaScript and CSS, so I'm a bit stuck.
What can I do to solve this?
(I'm aware there are similar questions to this but they haven't solved my problem)
Thanks in advance.
答案 0 :(得分:0)
它对我有用:https://jsfiddle.net/fgcb27aa/
检查当前页面是否启用了工具提示。
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
});