Bootstrap 工具提示不起作用 - Bootstrap tooltips not working

问题:

I'm going mad here.我要疯了。

I've got the following HTML:我有以下 HTML:

<a href="#" rel="tooltip" title="A nice tooltip">test</a>

And the Bootstrap style tooltip refuses to display, just a normal tooltip.而 Bootstrap 风格的工具提示拒绝显示,只是一个普通的工具提示。

I've got bootstrap.css working just fine, and I can see the classes in there我已经让 bootstrap.css 工作得很好,我可以看到那里的类

I've got all of the relevant JS files at the end of my HTML file:我的 HTML 文件末尾有所有相关的 JS 文件:

<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap-alert.js"></script>
<script src="bootstrap/js/bootstrap-modal.js"></script>
<script src="bootstrap/js/bootstrap-transition.js"></script>
<script src="bootstrap/js/bootstrap-tooltip.js"></script>

I've looked at the source of Bootstrap's example and cannot see anything that initiates the tooltip anywhere in there.我已经查看了 Bootstrap 示例的来源,但在其中的任何地方都看不到任何启动工具提示的内容。 So I'm guessing it should just work, or am I missing something vital here?所以我猜它应该可以正常工作,还是我在这里遗漏了一些重要的东西?

I've got modals and alerts and other things working just fine, so I'm not a total moron ;)我有模态和警报以及其他工作正常的东西,所以我不是一个彻头彻尾的白痴;)

Thanks for any help!谢谢你的帮助!


解决方案:

参考一: https://stackoom.com/question/ddPy
参考二: Bootstrap tooltips not working
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章