【发布时间】:2014-08-26 17:54:16
【问题描述】:
我正在使用 jquery qtip (http://qtip2.com/)
它工作得很好,我里面有一些带有类的 div
我正在尝试在这些 div 上调用点击功能
qtip:
var tipContent = $('#tip-content').html();
$('#obsglass').qtip({
content: {
text: tipContent
},
show: {
effect: function() {
$(this).fadeTo(500, 1);
},
event:'click'
},
hide: {
effect: function() {
$(this).slideUp();
},
event:'click unfocus'
},
//show: 'click',
//hide: 'click unfocus',
style: {
classes: 'qtip-bootstrap qtip-shadow',
},
position: {
my: 'center left', // Position my top left...
at: 'center right', // at the bottom right of...
target: $('#obsglass') // my target
},
});
点击功能
$(".obsglass-thumbnail").click(function () {
... 点击工具提示中的div时不进入该功能
【问题讨论】: