Fancybox宽度不适用 [英] Fancybox width not applying
本文介绍了Fancybox宽度不适用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用以下JS调整宽度.当我使用'750'
或'750px'
Using the following JS the width isn't being adjusted. It doesn't get adjusted when I use '750'
or '750px'
$('a#city-prompt').fancybox({
'width': 750
});
我已经在 fancybox 论坛上发布了此消息,但没有得到答复
I've posted on the fancybox forums about this and haven't gotten a response
推荐答案
您可能必须将autoSize
设置为false
:
$('a#city-prompt').fancybox({
'width': 750,
'autoSize': false
});
关于width
,来自文档:
内容类型"iframe"和"swf"的宽度.如果'autoDimensions'设置为'false',也设置内联内容
Width for content types 'iframe' and 'swf'. Also set for inline content if 'autoDimensions' is set to 'false'
这篇关于Fancybox宽度不适用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文