簡體   English   中英

Fancybox:無法固定高度和寬度

[英]Fancybox: Unable to fix height and width

我正在使用Fancybox 1.2.6和JQuery 1.2.6,

碼:

<script type="text/javascript">
    $(document).ready(function() {

        $("a.iframe").fancybox({
            'width'             : 300,
            'height'            : 200,
            'type'              : 'iframe',
            'autoScale'         : false,
            'transitionIn'      : 'fade',
            'transitionOut'     : 'fade',
            'speedIn'           : 600, 
            'speedOut'          : 200, 
            'showCloseButton'   : false,
            'titleShow'         : false
        });

    });
</script>

<a class="iframe" id="iframe" href="test.html">iframe</a>

在這里,我無法固定窗口的高度和寬度。 下面我附上了我的輸出圖像。 有什么辦法可以固定高度和寬度?

在此處輸入圖片說明

autoDimensions值設置為true or false

有關更多詳細信息,請參見http://fancybox.net/api

也有

$.fancybox.resize();

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM