I have solved this problem already, but I wanted to share it, as I can see alot of people are dealing with it, and not enough solutions are available.
qTip Viewport adjustments weren't working for me.
I have solved this problem already, but I wanted to share it, as I can see alot of people are dealing with it, and not enough solutions are available.
qTip Viewport adjustments weren't working for me.
第一个问题:
当我第一次下载 qTip 时,我忘记了包含该库:
第二个问题:
我没有正确设置它:
可以在这里看到获得此功能的最简单方法:
// Create the tooltips only when document ready
$(document).ready(function()
{
// MAKE SURE YOUR SELECTOR MATCHES SOMETHING IN YOUR HTML!!!
$('.qtippy').each(function() {
$(this).qtip({
position: {
my: 'left top',
at: 'right center',
viewport: $(window)
},
});
});
$(".qtippy").draggable();
});
或者在这个 jsFiddle 中使用它:http: //jsfiddle.net/nM7AA/