[英]Scroll absolute position div with page
I am using fancybox 2 and I would like for the fancybox modal to scroll with the page, instead of being fixed to the center and having a max-height. 我正在使用fancybox 2,并且希望fancybox模态随页面滚动,而不是固定在中心并具有max-height。 How can I do this?
我怎样才能做到这一点?
$('.fancybox-open').fancybox({
openEffect : 'none',
closeEffect : 'none',
width: '100px',
'closeBtn' : true,
afterLoad : function() {
this.content.html();
}
});
您可以在初始化FancyBox时使用选项autoCenter: false
: http ://fancyapps.com/fancybox/#docs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.