我有这个简单的按钮标签:jQuery UI的工具提示不displayon按钮标签
<button class="toolb">this is a button</button>
这是我的代码:
$(".toolb").tooltip({ content: "example tooltip!" });
我将鼠标悬停在按钮上的鼠标,但没有工具提示显示。怎么来的?
我有这个简单的按钮标签:jQuery UI的工具提示不displayon按钮标签
<button class="toolb">this is a button</button>
这是我的代码:
$(".toolb").tooltip({ content: "example tooltip!" });
我将鼠标悬停在按钮上的鼠标,但没有工具提示显示。怎么来的?
你的按钮需要一个title属性来工作,即使它是空的:
<button class="toolb" title="">this is a button</button>
尝试:
<button class="toolb" title="example tooltip!">this is a button</button>
<script>
$(document).tooltip();
</script>
它的工作原理...我想我会这样做 – Phate
使用jQuery 1.9.2似乎工作,但如果我尝试1.11.0小提琴不让我选择jquery ...无论如何,我设置了一个标题,但奇怪的是,现在我可以看到只是标题.. tooltip不替代te it – Phate
它在jQuery 1.11中工作得很好。我更新了小提琴http://jsfiddle.net/j08691/sG92g/ – j08691