我在这里尝试获取qtip示例:
http://craigsworks.com/projects/qtip/demos/position/fixed
这样,当owl的图像移动时,qtip也随之移动(并保持在右上角)。
谢谢!
奖金问题..我还试图有一个悬停边框出现在周围的猫头鹰以及鼠标悬停。
下面是实现这种风格的qtip的代码:
<script type="text/javascript">
// Only create tooltips when document is ready
$(document).ready(function()
{
// Use the each() method to gain access to each of the elements attributes
$('#content img').each(function()
{
$(this).qtip(
{
content: '<a href="#">Edit</a> | <a href="#">Delete</a>', // Give it some content
position: 'topRight', // Set its position
hide: {
fixed: true // Make it fixed so it can be hovered over
},
style: {
padding: '5px 15px', // Give it some extra padding
name: 'dark' // And style it with the preset dark theme
}
});
});
});
</script>我不知道为什么文档没有对我尖叫着回答!
发布于 2012-04-13 12:26:27
这是一个qtip弹出窗口可拖动的示例。
http://jsfiddle.net/cagura/VunSW/
https://stackoverflow.com/questions/9559809
复制相似问题