JSFiddle无法正常工作

时间:2013-11-18 17:52:36

标签: jquery

我正在尝试更改引导工具提示颜色,在这里我找到了一个非常有前途的答案:

Change bootstrap tooltip color

但是,Praveen Kumar引用的JSFiddle没有用。

当我鼠标移动时,底部的工具提示没有任何反应,没有工具提示出现。

任何人都知道为什么这个JSFiddle不起作用?

2 个答案:

答案 0 :(得分:0)

由于title字段中未提及任何内容,因此您需要添加额外的扩展名,jQuery UI 1.9.2。请尝试以下操作:

<a href="#" data-toggle="tooltip" data-placement="bottom"
   title="hello" data-original-title="Tooltip on bottom"
   class="red-tooltip">Tooltip on bottom</a> 

<!--Title field was blank earlier.Now i added a text 'hello'-->

Demo

答案 1 :(得分:0)

因为外部资源已被移动。你可以在JSFiddle的一侧找到这些:

External Resources JSFiddle

具体来说,链接已从/移至:

http://twitter.github.io/bootstrap/assets/css/bootstrap.css - &gt; http://getbootstrap.com/2.3.2/assets/css/bootstrap.css

同样

http://twitter.github.io/bootstrap/assets/js/bootstrap-tooltip.js - &gt; http://getbootstrap.com/2.3.2/assets/js/bootstrap-tooltip.js

Here's the updated version of the Fiddle with the correct resource paths

I've also updated the original answer with the updated fiddle.
相关问题