[英]Change size of fancybox iframe- I can change width but not height?
[英]How to change fancybox width?
我的画廊宽度为1920宽度,高度为长,但是fancybox将我的图像的宽度和高度设置为适合屏幕的大小,我想通过高度滚动将图像的大小调整为适合屏幕宽度的代码,这是我的代码:
$.fancybox.open(attemp2.map(function (el) {
return {
src: el,
opts: {
caption: tempName,
}
};
}), {
loop: false,
toolbar: true
});
这里是我自己使用fancybox的一些代码片段。 我按百分比调整了宽度和高度。
$(".imagebox").fancybox({
maxWidth : 600,
maxHeight : 600,
wrapCSS : 'fancy-imagebox', // add a class selector to the fancybox wrap
margin : [0, 0, 0, 0],
width : '70%',
height : '90%',
autoSize : true
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.