Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用qTip2。我认为它包括屏幕检测 - 但是,我在 iframe 中使用工具提示,但它不起作用:
我试过:
position: { adjust: {screen: true}, my: 'bottom center', // Position my top left... at: 'top center' // at the bottom right of... },
它没有用
qTip2 插件有一个viewport选项:
viewport
position: { my: 'bottom center', // Position my top left... at: 'top center', // at the bottom right of... adjust: { screen: true }, viewport: $(window) },
它修复了这种情况。