我正在使用此网站上提供的jQuery工具提示
http://flowplayer.org/tools/tooltip使用下面的代码可以很好地工作
$("input[title]").tooltip({ effect: 'slide'});这会将工具提示应用于任何具有title标记的元素
这对按钮、图像等都很有效,但是当我在文本框中尝试时,只有在文本框内单击时才会出现工具提示,你知道为什么我会看到这种行为吗?
发布于 2012-01-22 05:19:41
因为它是默认行为- http://flowplayer.org/tools/tooltip/index.html
events: {
def: "mouseover,mouseout",
input: "focus,blur",
widget: "focus mouseover,blur mouseout",
tooltip: "mouseover,mouseout"
}您可以使用事件管理来更改此行为:http://flowplayer.org/tools/tooltip/index.html#events
$("element").tooltip({
events: {
input: 'mouseover,mouseout'
}
});https://stackoverflow.com/questions/8956469
复制相似问题