首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >qTip,可拖动

qTip,可拖动
EN

Stack Overflow用户
提问于 2012-03-05 07:17:49
回答 1查看 1K关注 0票数 2

我在这里尝试获取qtip示例:

http://craigsworks.com/projects/qtip/demos/position/fixed

这样,当owl的图像移动时,qtip也随之移动(并保持在右上角)。

谢谢!

奖金问题..我还试图有一个悬停边框出现在周围的猫头鹰以及鼠标悬停。

下面是实现这种风格的qtip的代码:

代码语言:javascript
复制
<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>

我不知道为什么文档没有对我尖叫着回答!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-04-13 12:26:27

这是一个qtip弹出窗口可拖动的示例。

http://jsfiddle.net/cagura/VunSW/

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

https://stackoverflow.com/questions/9559809

复制
相关文章

相似问题

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