有没有人使用过 qTip 来创建响应单击元素的工具提示,但也设置为在页面加载后弹出?我尝试使用 setTimeout,但似乎无法让它自动加载。
谢谢!
您可以将 qtip 定义为在您喜欢的任何事件中显示,只需将其配置为不在事件中显示,而是随心所欲地显示。例如:
$(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
})
});