使用qtip时如何避免页面滚动? [英] How to avoid page scroll when using qtip?

查看:130
本文介绍了使用qtip时如何避免页面滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是qTip的忠实拥护者,但我想知道是否有一种方法可以使用模式窗口而无需将页面滚动到顶部.

I'm a big fan of qTip, but I was wondering if there was a way to use the modal window without having your page scroll to the top.

环顾四周,但尚未找到任何东西.这可能吗?

Have looked around but haven't found anything yet. Is this possible?

推荐答案

是的,有可能!您需要设置调整字段

Yes it is possible! You need to set the adjust field

adjust : {
    screen : true
}

在其中指定工具提示的位置

where you specify the position of the tooltip

position : {
    my : 'right center',
    at : 'left center',
    adjust : {
        screen : true
    }
}

我不确定这是否是qTip1的功能,但我在qtip2中使用过.工具提示是 自动调整以避免溢出和滚动

I am not sure if that is a feature of qTip1 but I used in in qtip2. The tooltip is adjusted automatically to avoid overflow and scrolling

这篇关于使用qtip时如何避免页面滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆