2012-06-20 57 views
3

我使用qTip2。我认为它包括网检测 - 但是,我使用的是iframe中的提示,并且它不工作:qTip2边缘检测

screenshot showing tooltip hidden under edge of iframe

我想:

position: { 
    adjust: {screen: true}, 
    my: 'bottom center', // Position my top left... 
    at: 'top center' // at the bottom right of... 
}, 

它没有工作

+1

您是否尝试过使用'style'属性调整qTip的宽度?为什么不使宽度小于安全登录框?另外,提示并不完全以输入为中心。你有指定的输入宽度吗? – chrisvillanueva

回答

4

的qTip2插件有一个viewport选项:

position: { 
    my: 'bottom center', // Position my top left... 
    at: 'top center', // at the bottom right of... 
    adjust: { 
     screen: true 
    }, 
    viewport: $(window) 
}, 

它修复了这种情况。