jquery - 定位 fancybox 盒子?

标签 jquery css fancybox

如何修改fancybox盒子的定位?我希望它被定位,以便它漂浮在我的容器 div 中...

感谢您的宝贵时间和帮助!

最佳答案

jquery.fancybox-1.2.6 的第 255 行有这段代码

var itemOpts = {
  'left':       itemLeft,
  'top':        itemTop,
  'width':  width + 'px',
  'height': height + 'px'
};

改变 'left' 值来向左或向右移动花式框

关于jquery - 定位 fancybox 盒子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2220143/

相关文章:

javascript - 在鼠标悬停时删除另一个 DOM 对象中第 n 个元素的类

javascript - 将列的鼠标悬停区域限制为其自身形状与周围区域

javascript - 如何制作连接模态窗口

jquery - html5 + jquery - 如何动态创建按钮

html - 如何使 "child"div 不会自行溢出并使用其父 div 的填充来呈现?

javascript - fancybox 中的全尺寸图像?

paypal - 在 Fancybox 中打开带有 POST 值的外部链接(HTTPS)?

javascript - 等待 javascript 脚本(Google 图表)加载网页

javascript - Fancybox - 如何从 url 加载图像?

html - 更改使用 wordpress 插件填充的内容选项卡的颜色?