我怎样才能让我的qtip决定他自己的左或右尖端属性

Ton*_*bet 6 css jquery position qtip

$('a.tooltip').each(function(){

$(this).qtip({
    content: { url: 'includes/qtip.php?'+$(this).attr('rel')+' #'+$(this).attr('div'), text:'loading...'  },
    show: { delay: 400},
    hide: { fixed: true, delay: 200 },
    position: {
        corner: {
            target: 'bottomLeft',
            tooltip: 'right'
        }
     },
     style: {
         name: 'light',
         width: 700
     }
});
});
Run Code Online (Sandbox Code Playgroud)

我喜欢wto .tooltip项目在我网站的右侧面板上,但如果没有看不到它完整,

我怎么能tooltip:'right'在别的地方做到这一点?我的意思是,我怎么知道?

Ale*_*rov 9

与你的情况类似的解决方案是:

position : {
    adjust : {
        screen : true
    }
}
Run Code Online (Sandbox Code Playgroud)

您可以在此主题中找到更多信息: 如何在使用qtip时避免页面滚动?