問題:
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