我可以让这个 jQuery 工具提示在我的光标悬停在它上面时保持打开状态吗?
http://onehackoranother.com/projects/jquery/tipsy/
假设我将鼠标悬停在某物上。工具提示出现在链接上方。当我将鼠标移至工具提示时,它就会消失。有办法保持下去吗?
我问这个问题的原因是因为我想在工具提示内放置一个按钮。我不希望当我点击按钮时它消失。
http://onehackoranother.com/projects/jquery/tipsy/
Let's say I hover over something. And the tooltip appears above the link. When I move my mouse to the tooltip, it disappears. Is there a way to keep it up?
The reason I'm asking this is because I want to put a button inside the tooltip. I don't want it to go away when I go click the button.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请检查以下代码 jquery.tipsy.js 文件
从第 61 行开始
将指示行上的“100”更改为“1000”。
Please check the following code jquery.tipsy.js file
Starting from line 61 onwards
Change "100" to "1000" on the indicated line.
此功能不是内置的,但通过手动显示和隐藏醉酒(使用
trigger: 'manual'
和$.hover()
来自行添加它并不难)。下面的代码虽然有点长,但应该可以正常工作。This functionality is not built-in, but it's not so hard to add it yourself by manually showing and hiding tipsy (using
trigger: 'manual'
and$.hover()
). The code below, while a bit lengthy, should work fine.尝试线索提示插件。即下面链接中的粘性选项 -
http://plugins.learningjquery.com/cluetip/demo/< /a>
这个插件很容易使用,并且还有很多配置选项可用。
Try the cluetip plugin. ie sticky option in that from below link -
http://plugins.learningjquery.com/cluetip/demo/
This plugin is easy to use and lot of configuration options are available as well.
根据插件文档,您可以在工具提示消失之前设置延迟,请尝试:
在此处查看其他配置选项:
http://onehackoranother.com/projects/jquery/tipsy/#options
According to the plug in documentation you can set a delay before the tool tip disappears, try:
See other configuration options here:
http://onehackoranother.com/projects/jquery/tipsy/#options