首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >基于qTip2的边缘检测

基于qTip2的边缘检测
EN

Stack Overflow用户
提问于 2012-06-20 08:56:33
回答 1查看 1.4K关注 0票数 3

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

我试过了:

代码语言:javascript
复制
position: {
    adjust: {screen: true},
    my: 'bottom center',  // Position my top left...
    at: 'top center' // at the bottom right of...
},

它不起作用

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-06-20 23:40:09

qTip2插件有一个viewport选项:

代码语言:javascript
复制
position: {
    my: 'bottom center',  // Position my top left...
    at: 'top center', // at the bottom right of...
    adjust: {
        screen: true
    },
    viewport: $(window)
},

它解决了这个问题。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11111481

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档