gpt4 book ai didi

javascript - Fancybox V2 fit content width iframe

转载 作者:太空宇宙 更新时间:2023-11-03 18:15:33 27 4
gpt4 key购买 nike

我一直在尝试让来自 fancybox v2 的 iframe 适合我的内容的宽度。它总是在 iframe 中显示很大的内容,我必须水平滚动才能看到其余内容。我想查看 iframe 中内容的整个宽度而无需滚动。我将如何处理这个解决方案?

我试过了,但没用。

 $(".fancybox").fancybox({
maxWidth: 992
});

参见- http://fancyapps.com/fancybox/

最佳答案

不要改变 maxWidth,试试 width-

$(".fancybox").fancybox({
width: 992,
height:992
});

关于javascript - Fancybox V2 fit content width iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22906532/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com