qtip工具提示位置无法在移动设备中运行

时间:2014-12-08 14:41:49

标签: javascript jquery qtip

我在jquery mobile中使用Qtip Tooltip,它在桌面和ipad上运行良好,但在移动设备中,它的位置无法正常工作。

这是我的剧本:

$('[data-tooltip!=""]').qtip({
        content: {
            attr: 'data-tooltip',
            button: true// Tell qTip2 to look inside this attr for its content
        },
        position: {                
            my: 'bottom center', at: "top center",
            adjust: {                    
                y: 0                    
            },
            viewport: $(window)                
        },
        show: {
            event: 'click',
        },
        hide: {
            event: false,
            fixed: true
        },
        style: {
            classes: 'qtip-bootstrap'                
        }
    });
}

我做错了吗?

0 个答案:

没有答案
相关问题