页面加载后自动显示qTip(jQuery插件)工具提示 [英] Automatically show qTip (jQuery plugin) tooltip after page load
本文介绍了页面加载后自动显示qTip(jQuery插件)工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有人使用qTip创建工具提示来响应对元素的单击,但也设置为在页面加载后弹出?我尝试过使用setTimeout,但似乎无法使其自动加载.
Has anyone ever used qTip to create a tooltip that responds to a click on an element, but also is set to popup after the page loads? I tried playing around with setTimeout, but I can't seem to get it to load automatically.
谢谢!
推荐答案
您可以将qtip定义为在您喜欢的任何事件中显示,只需将其配置为不在事件中显示,而是随心所欲.例如:
You can define qtip to display in any event you like, simply by configuring it to not display in an event, but at your whim. For instance:
$(document).ready(function(){
$('div.some-element').qtip({
content: 'This is the tooltip',
show: {
when: false, // Don't specify a show event
ready: true // Show the tooltip when ready
},
hide: false // Don't specify a hide event
})
});
这篇关于页面加载后自动显示qTip(jQuery插件)工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文