我使用的是qTip2。我以为它包含了屏幕检测功能--然而,我使用的是iframe中的工具提示,它不起作用:

我试过了:
position: {
adjust: {screen: true},
my: 'bottom center', // Position my top left...
at: 'top center' // at the bottom right of...
},它不起作用
发布于 2012-06-20 23:40:09
qTip2插件有一个viewport选项:
position: {
my: 'bottom center', // Position my top left...
at: 'top center', // at the bottom right of...
adjust: {
screen: true
},
viewport: $(window)
},它解决了这个问题。
https://stackoverflow.com/questions/11111481
复制相似问题