【问题标题】:Fancybox height won't listenFancybox 高度不会听
【发布时间】:2012-06-06 06:21:07
【问题描述】:

我正在使用最新的 Fancybox v2.0.6 代码,但我遇到了一个我似乎无法解决的问题。

这是我的代码:

$("a.postlink").fancybox({

    'width'             :   860,
    'height'        :   600,
    'autoScale'     :   false,
    'autoDimensions'        :   false,
    'type'          :   'iframe'
}); 

一切似乎都很好,除了高度一直设置为自动。如果我检查 Firebug,我会看到高度被设置回“自动”。

<div class="fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened" style="width: 890px; height: auto; display: block; position: absolute; top: 1111px; left: 312px; opacity: 1;">
<div class="fancybox-skin" style="padding: 15px;">
<div class="fancybox-outer">
<div class="fancybox-inner" style="width: 860px; height: 200px; overflow: auto;">
<iframe scrolling="auto" frameborder="0" hspace="0" name="fancybox-frame1338509511183" class="fancybox-iframe" src="http://localhost:8888/quepasa/?edition=112802"></iframe></div>
<a class="fancybox-nav fancybox-prev" title="Previous"><span></span></a>
<a class="fancybox-nav fancybox-next" title="Next"><span></span></a></div>
<div class="fancybox-item fancybox-close" title="Close"></div>
</div>
</div>

【问题讨论】:

    标签: jquery fancybox height


    【解决方案1】:
    'autoScale'     :   false
    

    在fancybox版本中是'autoSize' : false:2.0.6

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-04
      • 2013-11-21
      • 2012-02-10
      • 2014-05-19
      • 2012-01-24
      • 2014-03-08
      • 1970-01-01
      相关资源
      最近更新 更多